0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 19:42:43 +00:00

Remove duplicate error logs for google drive update / new

Errors are now logged once in the central error handler in app.js
This commit is contained in:
Trevor Buckner
2024-09-26 19:00:07 -04:00
parent 84736980c9
commit ff9a75f6b6
3 changed files with 7 additions and 17 deletions

View File

@@ -498,7 +498,7 @@ app.use(async (err, req, res, next)=>{
err.originalUrl = req.originalUrl;
console.error(err);
if(err.originalUrl?.startsWith('/api/')) {
if(err.originalUrl?.startsWith('/api')) {
// console.log('API error');
res.status(err.status || err.response?.status || 500).send(err);
return;