Skip to content

Commit b8d1a5e

Browse files
committed
fix: prevent staff from being included in disco piscine user count
in user overview
1 parent 8a49cc6 commit b8d1a5e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utils.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ export const getAllDiscoPiscines = async function(prisma: PrismaClient, limitToC
196196
end_at: {
197197
not: null, // Only include cursus_users that have an end date set
198198
},
199+
NOT: {
200+
user: {
201+
kind: "admin",
202+
},
203+
},
199204
},
200205
});
201206

0 commit comments

Comments
 (0)