diff --git a/routes/atfd/index.js b/routes/atfd/index.js
index 39d872b90..c8f9e69e4 100644
--- a/routes/atfd/index.js
+++ b/routes/atfd/index.js
@@ -28,14 +28,14 @@ module.exports = async (ctx) => {
Referer: host,
},
});
- const data = response.data.data;
+ const data = response.data.data.slice(0, 10);
ctx.state.data = {
title: 'All the Flight Deals',
link: host,
description: 'All the Flight Deals',
item: data.map((item) => ({
- title: `[${dayjs(item.dateRanges[0].start).format('YYYY MMM DD')} to ${dayjs(item.dateRanges[0].end).format('YYYY MMM DD')}] ${item.title}`,
+ title: `[${item.dateRanges[0] ? dayjs(item.dateRanges[0].start).format('YYYY MMM DD') + 'to' + dayjs(item.dateRanges[0].end).format('YYYY MMM DD') : ''}] ${item.title}`,
description: `
| From | To | Price |
|---|---|---|
| ${ |