got delete and create grants all in two routes

This commit is contained in:
Arjun Patel
2019-02-02 22:14:55 -08:00
parent 226f5c1149
commit c64c044961
3 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ exports.create = (req, res, next) => {
// message: 'Grant Created'
// });
req.grant = grants.dataValues;
next();
next(grants.dataValues);
return null;
})
.catch(function(error) {
// transaction rollback