fix: change Map instantiation type definition in batch-save route
This commit is contained in:
parent
a7cfa1a951
commit
d5a09e14a4
1 changed files with 2 additions and 2 deletions
|
|
@ -63,8 +63,8 @@ export async function POST(req: NextRequest) {
|
|||
where: { code: { in: uniqueHotelCodes } }
|
||||
});
|
||||
|
||||
const userMap = new Map(dbUsers.map((u: any) => [u.username, u]));
|
||||
const hotelMap = new Map(dbHotels.map((h: any) => [h.code, h]));
|
||||
const userMap = new Map<string, any>(dbUsers.map((u: any) => [u.username, u]));
|
||||
const hotelMap = new Map<string, any>(dbHotels.map((h: any) => [h.code, h]));
|
||||
|
||||
// 3. Save records
|
||||
const createdSales = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue