fixed server error when trying to view nonexistend application

This commit is contained in:
2025-12-30 14:24:25 -05:00
parent 3848eb939a
commit efb5508a8d

View File

@@ -80,8 +80,10 @@ router.get('/me', [requireLogin], async (req, res) => {
try {
let application = await getMemberApplication(userID);
if (application === undefined)
if (application === undefined) {
res.sendStatus(204);
return;
}
const comments: CommentRow[] = await getApplicationComments(application.id);