From a7de8b348053c75d1169decc8185e1fcc14439c6 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Tue, 19 Feb 2019 23:11:20 -0800 Subject: [PATCH] formatting --- app/controllers/donor/grant.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/donor/grant.controller.js b/app/controllers/donor/grant.controller.js index e850b09..7f4c9cd 100644 --- a/app/controllers/donor/grant.controller.js +++ b/app/controllers/donor/grant.controller.js @@ -9,7 +9,7 @@ exports.create = (req, res, next) => { const { name, amount, monthly, causes, regions, organizations } = req.body; return sequelize - .transaction(function(t) { + .transaction(function (t) { return Grant.create( { donor_id, @@ -28,7 +28,7 @@ exports.create = (req, res, next) => { ]).then(result => grant); }); }) - .then(function(grants) { + .then(function (grants) { // transaction committed // res.status(201).json({ // grant, @@ -38,7 +38,7 @@ exports.create = (req, res, next) => { next(grants.dataValues); return null; }) - .catch(function(error) { + .catch(function (error) { // transaction rollback next(error); });