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