Ensure getBrew returns an object if undefined

This commit is contained in:
Trevor Buckner
2023-01-22 21:57:14 +01:00
committed by Victor Losada Hernandez
parent a8c35f3967
commit 6020657529
+1 -1
View File
@@ -82,7 +82,7 @@ If you believe you should have access to this brew, ask the file owner to invite
stub = _.defaults(stub, DEFAULT_BREW_LOAD); // Fill in blank fields stub = _.defaults(stub, DEFAULT_BREW_LOAD); // Fill in blank fields
} }
req.brew = stub; req.brew = stub ?? {};
next(); next();
}; };
}, },