diff --git a/src/server/repositories/friendRequestRepository.ts b/src/server/repositories/friendRequestRepository.ts index 9536d70..500bc29 100644 --- a/src/server/repositories/friendRequestRepository.ts +++ b/src/server/repositories/friendRequestRepository.ts @@ -7,9 +7,9 @@ const create = ( ) => { return prisma.friendRequest.upsert({ where: { - senderId_receiverId: { - senderId, + receiverId_senderId: { receiverId, + senderId, }, }, create: {