From 1860315b20354610b4446a32c7526566a696138c Mon Sep 17 00:00:00 2001 From: Remi-pcn <166511249+Remi-pcn@users.noreply.github.com> Date: Mon, 7 Oct 2024 15:03:04 +0200 Subject: [PATCH] Fix api route accessible (#243) * feat: create majority filter (#238) Co-authored-by: Antoine D Co-authored-by: Remi-pcn <166511249+Remi-pcn@users.noreply.github.com> * fix: plus d'info sensible quand on cherche /api/teams/:teamID * fix: changed filter * fix: badge in descending order --------- Co-authored-by: Antoine D <106921102+Suboyyy@users.noreply.github.com> Co-authored-by: Antoine D --- src/controllers/admin/badges/generateBadges.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/admin/badges/generateBadges.ts b/src/controllers/admin/badges/generateBadges.ts index 24b0b7b5..80a27ce4 100644 --- a/src/controllers/admin/badges/generateBadges.ts +++ b/src/controllers/admin/badges/generateBadges.ts @@ -69,6 +69,9 @@ export default [ case 'orgas': { await database.user .findMany({ + orderBy: { + firstname: 'desc', + }, where: { permissions: { contains: 'orga' }, },