0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-20 20:24:52 +00:00

More Linting

This commit is contained in:
Trevor Buckner
2024-09-18 15:50:46 -04:00
parent a7c892c1bb
commit 5c2ad7dfee
5 changed files with 103 additions and 103 deletions

View File

@@ -45,7 +45,7 @@ const NotificationLookup = ()=>{
setNotifications(res.body || []);
} catch (err) {
console.log(err);
setError(`Error looking up notifications: ${err.response.body.message}`)
setError(`Error looking up notifications: ${err.response.body.message}`);
} finally {
setSearching(false);
}
@@ -71,9 +71,9 @@ const NotificationLookup = ()=>{
lookupAll();
} catch (err) {
console.log(err);
setError(`Error deleting notification: ${err.response.body.message}`)
setError(`Error deleting notification: ${err.response.body.message}`);
};
};
}
const renderNotificationsList = ()=>{
if(error)

View File

@@ -178,9 +178,9 @@ router.get('/admin', mw.adminOnly, (req, res)=>{
})
.then((page)=>res.send(page))
.catch((err)=>{
console.log(err)
res.sendStatus(500)
})
console.log(err);
res.sendStatus(500);
});
});
module.exports = router;