Skip to content

Commit

Permalink
fix(reservation-manage): wrong type invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerzl committed Oct 1, 2024
1 parent c4a08fe commit 408e9a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/api/reservation/manage.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default eventHandler(async (event) => {
user: true,
},
where: {
id: Number(query.id),
id: query.id,
},
})
if (!currentReservation) {
Expand All @@ -90,7 +90,7 @@ export default eventHandler(async (event) => {
return
return await prisma.reservationRecord.delete({
where: {
id: Number(query.id),
id: query.id,
},
})
.then(() => {
Expand Down

0 comments on commit 408e9a5

Please sign in to comment.