Compare commits

...

2 Commits

Author SHA1 Message Date
51f68d5021 added build and push scripts 2023-03-06 20:44:42 -06:00
60be926708 Fixed const variable error 2023-03-06 20:44:29 -06:00
2 changed files with 4 additions and 2 deletions

View File

@ -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": "",

View File

@ -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: [