Skip to content

Commit

Permalink
Fixed handleDELETE to not use AND statement in pages/api/gifts/[uuid]…
Browse files Browse the repository at this point in the history
….ts"
  • Loading branch information
anttiasmala committed May 16, 2024
1 parent 135dfe5 commit 7e4a63a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pages/api/gifts/[uuid].ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,7 @@ async function handleDELETE({ res, giftUUID, userData }: HandlerParams) {
await prisma.gift.delete({
where: {
uuid: giftUUID,
AND: {
user: {
uuid: userData.uuid,
},
},
userUUID: userData.uuid,
},
});

Expand Down

0 comments on commit 7e4a63a

Please sign in to comment.