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