mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 03:42:38 +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();
|
if(mongoose.connection.readyState == 1) return next();
|
||||||
throw {
|
throw {
|
||||||
HBErrorCode : 13,
|
HBErrorCode : '13',
|
||||||
name : 'Database Connection Error',
|
name : 'Database Connection Error',
|
||||||
message : 'Unable to connect to database',
|
message : 'Unable to connect to database',
|
||||||
status : mongoose.connection.readyState
|
status : mongoose.connection.readyState
|
||||||
|
|||||||
Reference in New Issue
Block a user