From 9675496159ea7ab519f77bb3a051a509eb0485c6 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 9 Sep 2024 16:34:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=AD=E5=9B=BD=E9=85=92=E5=BA=97?= =?UTF-8?q?=E7=9A=84=E5=90=8D=E7=A7=B0,=20=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/services/heytripService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`);