Skip to content

Commit

Permalink
Merge pull request #239 from AgenceBio/feature/ajout-status
Browse files Browse the repository at this point in the history
fix: Tri avant l'envoi au frontend
  • Loading branch information
GregoireDucharme authored Nov 27, 2024
2 parents 5609af5 + f09a16a commit 435769b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ app.register(async (app) => {
const { limit, offset } = request.query

return fetchUserOperators(userId, limit, offset)
.then(res => { res.operators = res.operators.filter((e) => e.isProduction === true); return res })
.then(res => reply.code(200).send(res))
})

Expand Down

0 comments on commit 435769b

Please sign in to comment.