Skip to content

Commit

Permalink
fix: unique index request
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciZhong committed Oct 12, 2024
1 parent 5faa095 commit ac89fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/repositories/friendRequestRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const create = (
) => {
return prisma.friendRequest.upsert({
where: {
senderId_receiverId: {
senderId,
receiverId_senderId: {
receiverId,
senderId,
},
},
create: {
Expand Down

0 comments on commit ac89fc0

Please sign in to comment.