Skip to content

Commit

Permalink
Merged optimization, filtering memberships on semster_id or lifetime …
Browse files Browse the repository at this point in the history
…memberships on membership api endpoint
  • Loading branch information
Sebbben committed Nov 19, 2024
2 parents 0e75318 + 36fdf0c commit cded99e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/api/v2/memberships/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ export async function GET(req) {
name: true,
comment: true,
date_joined: true
},
where: {
OR: [
{semester_id: session.semester.id},
{lifetime: true}
]
}
});

Expand Down

0 comments on commit cded99e

Please sign in to comment.