basic functionality for image upload and db change

This commit is contained in:
Arjun Patel
2019-04-09 02:08:15 -07:00
parent 27626a0fbf
commit 3539f7aef9
7 changed files with 255 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
module.exports = (status, message) => {
module.exports = (status = 400, message = '') => {
const error = new Error(message);
error.status = status;
return error;