mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 14:12:40 +00:00
Fix HBErrorCode to string, not number
This commit is contained in:
@@ -7,7 +7,7 @@ export default (req, res, next)=>{
|
||||
|
||||
if(mongoose.connection.readyState == 1) return next();
|
||||
throw {
|
||||
HBErrorCode : 13,
|
||||
HBErrorCode : '13',
|
||||
name : 'Database Connection Error',
|
||||
message : 'Unable to connect to database',
|
||||
status : mongoose.connection.readyState
|
||||
|
||||
Reference in New Issue
Block a user