Compare commits
2 Commits
7861f2131a
...
51f68d5021
| Author | SHA1 | Date | |
|---|---|---|---|
| 51f68d5021 | |||
| 60be926708 |
@ -6,7 +6,9 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "node index.js",
|
||||
"dev": "nodemon index.js"
|
||||
"dev": "nodemon index.js",
|
||||
"build": "docker buildx bake",
|
||||
"push": "docker buildx bake --push"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
|
||||
@ -226,7 +226,7 @@ router.get("/", (req, res) => {
|
||||
module.exports = router;
|
||||
function sendError(err, res) {
|
||||
console.error(err);
|
||||
const errStatus = 500;
|
||||
let errStatus = 500;
|
||||
if (err.response) errStatus = err.response.status;
|
||||
res.status(errStatus).send({
|
||||
errors: [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user