|
|
@ -359,7 +359,7 @@ class Heytrip {
|
|
|
|
if (isEmpty(rows)) {
|
|
|
|
if (isEmpty(rows)) {
|
|
|
|
return { next: !isEmpty(allIds), data: allIds };
|
|
|
|
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 _BaseInfoExistsMapped = _BaseInfoExists.reduce((ru, c) => ({...ru, [`${c.hotel_id}`]: c }), {});
|
|
|
|
const existsIds = _BaseInfoExists.map((item) => `${item.hotel_id}`);
|
|
|
|
const existsIds = _BaseInfoExists.map((item) => `${item.hotel_id}`);
|
|
|
|
|
|
|
|
|
|
|
|