Skip to content

Commit

Permalink
only send internal users
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed Apr 6, 2024
1 parent 77b39b8 commit ea2eb33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/api/src/controllers/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export function userRoutes(fastify: FastifyInstance) {
const token = checkToken(bearer);
if (token) {
const users = await prisma.user.findMany({
where: {
external_user: false,
},
select: {
id: true,
name: true,
Expand Down

0 comments on commit ea2eb33

Please sign in to comment.