aboutsummaryrefslogtreecommitdiffstats
path: root/lib/upload.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/upload.js')
-rw-r--r--lib/upload.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/upload.js b/lib/upload.js
index ceead928..a91e4eba 100644
--- a/lib/upload.js
+++ b/lib/upload.js
@@ -43,6 +43,6 @@ app.post("/upload/:type", auth, async function(req, res) {
res.send(name);
} catch (e) {
console.log(e);
- return res.status(500).send(e);
+ return res.code(500).send(e);
}
});