fix: type annotation for map variables in sales import route

This commit is contained in:
Luis Gabriel Ramos Robles 2026-06-11 22:35:22 +00:00
parent bcdc8efba5
commit a7cfa1a951

View file

@ -173,8 +173,8 @@ export const POST = withAuth(async (req, { session, prisma }) => {
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<string, any>(dbUsers.map((u: any) => [u.username, u]));
const hotelMap = new Map<string, any>(dbHotels.map((h: any) => [h.code, h]));
// Find active user for region verification
const activeUser = await prisma.user.findUnique({