fix: type annotation for map variables in sales import route
This commit is contained in:
parent
bcdc8efba5
commit
a7cfa1a951
1 changed files with 2 additions and 2 deletions
|
|
@ -173,8 +173,8 @@ export const POST = withAuth(async (req, { session, prisma }) => {
|
||||||
where: { code: { in: uniqueHotelCodes } }
|
where: { code: { in: uniqueHotelCodes } }
|
||||||
});
|
});
|
||||||
|
|
||||||
const userMap = new Map(dbUsers.map(u => [u.username, u]));
|
const userMap = new Map<string, any>(dbUsers.map((u: any) => [u.username, u]));
|
||||||
const hotelMap = new Map(dbHotels.map(h => [h.code, h]));
|
const hotelMap = new Map<string, any>(dbHotels.map((h: any) => [h.code, h]));
|
||||||
|
|
||||||
// Find active user for region verification
|
// Find active user for region verification
|
||||||
const activeUser = await prisma.user.findUnique({
|
const activeUser = await prisma.user.findUnique({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue