mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 13:42:38 +00:00
More Linting
This commit is contained in:
@@ -45,7 +45,7 @@ const NotificationLookup = ()=>{
|
|||||||
setNotifications(res.body || []);
|
setNotifications(res.body || []);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
setError(`Error looking up notifications: ${err.response.body.message}`)
|
setError(`Error looking up notifications: ${err.response.body.message}`);
|
||||||
} finally {
|
} finally {
|
||||||
setSearching(false);
|
setSearching(false);
|
||||||
}
|
}
|
||||||
@@ -71,9 +71,9 @@ const NotificationLookup = ()=>{
|
|||||||
lookupAll();
|
lookupAll();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
setError(`Error deleting notification: ${err.response.body.message}`)
|
setError(`Error deleting notification: ${err.response.body.message}`);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
const renderNotificationsList = ()=>{
|
const renderNotificationsList = ()=>{
|
||||||
if(error)
|
if(error)
|
||||||
|
|||||||
@@ -178,9 +178,9 @@ router.get('/admin', mw.adminOnly, (req, res)=>{
|
|||||||
})
|
})
|
||||||
.then((page)=>res.send(page))
|
.then((page)=>res.send(page))
|
||||||
.catch((err)=>{
|
.catch((err)=>{
|
||||||
console.log(err)
|
console.log(err);
|
||||||
res.sendStatus(500)
|
res.sendStatus(500);
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
|
|||||||
Reference in New Issue
Block a user