mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2026-03-10 21:25:04 +00:00
Fixing errors and warnings
This commit is contained in:
@@ -153,8 +153,8 @@ exports.quoteWithoutPost = (req, res) => {
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
return res.status(500).json({error: 'Something is wrong'});
|
||||
|
||||
// return res.status(500).json({error: 'Something is wrong'});
|
||||
return res.status(500).json({error: err});
|
||||
})
|
||||
|
||||
}
|
||||
@@ -195,7 +195,8 @@ exports.likePost = (req, res) => {
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
return res.status(500).json({error: 'Something is wrong'});
|
||||
// return res.status(500).json({error: 'Something is wrong'});
|
||||
return res.status(500).json({error: err});
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user