Negated a simple change
This commit is contained in:
@@ -35,7 +35,7 @@ async function get(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
sessions.filter((x) => {
|
sessions.filter((x) => {
|
||||||
if (!x.assignment) return true;
|
if (!x.assignment) return true;
|
||||||
if (x.assignment.results.filter((y) => y.user === user).length > 0) return false;
|
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));
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user