Skip to content

Commit

Permalink
hotfix: shared flami error
Browse files Browse the repository at this point in the history
Because of Atlas subscription MongoDB was unable to affect a $where condition resulting in a backend error.
  • Loading branch information
Maxencee committed Mar 22, 2024
1 parent 18df5cc commit 3d68ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/flami.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const flamiController = {
]
})

if(sharer_search_flami) return res.status(409).json({ message: "La personne avec qui tu échange as déjà reçu ce Flami précedement.", error: 409 });
if(user_search_flami) return res.status(409).json({ message: "La personne avec qui tu échange as déjà reçu ce Flami précedement.", error: 409 });

await flamitradeModel.create({
owners: {
Expand Down

0 comments on commit 3d68ee3

Please sign in to comment.