fix: type annotation for map variables in batch-save route

This commit is contained in:
Luis Gabriel Ramos Robles 2026-06-11 22:29:01 +00:00
parent 9759a8bcda
commit bcdc8efba5

View file

@ -63,8 +63,8 @@ export async function POST(req: NextRequest) {
where: { code: { in: uniqueHotelCodes } }
});
const userMap = new Map(dbUsers.map(u => [u.username, u]));
const hotelMap = new Map(dbHotels.map(h => [h.code, h]));
const userMap = new Map(dbUsers.map((u: any) => [u.username, u]));
const hotelMap = new Map(dbHotels.map((h: any) => [h.code, h]));
// 3. Save records
const createdSales = [];