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