Skip to content

Commit

Permalink
fixed board page to not include orphans
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebbben committed Nov 15, 2024
1 parent 23799d5 commit 2009232
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/api/v2/recruitGraph/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ export async function GET(req) {
lastName: true,
id: true,
recruitedById: true
},
where: {
OR: [
{recruitedById: {
not: null
}},
{recruitedUsers: {
some: {}
}}
]
}
});

Expand Down

0 comments on commit 2009232

Please sign in to comment.