Skip to content

Commit

Permalink
fix: filter program enrollments to only accept accepted people
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanKha committed Jan 16, 2025
1 parent 58e158e commit ccaf09d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/api/users/private-mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export async function getUsersByProgram(
// Find program enrollments for the given program and populate the associated users
const enrollments = await ProgramEnrollmentModel.find({
program: programName,
status: "accepted",
})
.populate("user")
.lean()
Expand Down

0 comments on commit ccaf09d

Please sign in to comment.