0
0
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:
G.Ambatte
2025-10-05 15:30:47 +13:00
parent d40f8ff380
commit bb0a840113

View File

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