diff --git a/server/services/heytripService.js b/server/services/heytripService.js index b2b1816..02215c0 100644 --- a/server/services/heytripService.js +++ b/server/services/heytripService.js @@ -359,7 +359,7 @@ class Heytrip { if (isEmpty(rows)) { return { next: !isEmpty(allIds), data: allIds }; } - const _BaseInfoExists = await Hotelinfo.findAll({ where: { hotel_id: allIds }, }); + const _BaseInfoExists = await Hotelinfo.findAll({ where: { hotel_id: allIds }, attributes: ['hotel_id'] }); const _BaseInfoExistsMapped = _BaseInfoExists.reduce((ru, c) => ({...ru, [`${c.hotel_id}`]: c }), {}); const existsIds = _BaseInfoExists.map((item) => `${item.hotel_id}`);