diff --git a/src/pages/api/sessions/index.ts b/src/pages/api/sessions/index.ts index 9b7fb3ec..16afdeca 100644 --- a/src/pages/api/sessions/index.ts +++ b/src/pages/api/sessions/index.ts @@ -35,7 +35,7 @@ async function get(req: NextApiRequest, res: NextApiResponse) { sessions.filter((x) => { if (!x.assignment) return true; if (x.assignment.results.filter((y) => y.user === user).length > 0) return false; - return moment().isAfter(moment(x.assignment.endDate)); + return !moment().isAfter(moment(x.assignment.endDate)); }), ); }