Remove the sync
This commit is contained in:
+2
-5
@@ -281,7 +281,7 @@ var cards = {
|
||||
}
|
||||
next(null, resultItem ); // pass control to the next handler
|
||||
},
|
||||
activateCard: async function (req, res, next) {
|
||||
activateCard: function (req, res, next) {
|
||||
|
||||
try {
|
||||
logger.info(req.body);
|
||||
@@ -323,16 +323,13 @@ var cards = {
|
||||
next(null, resultItem); // pass control to the next handler
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
} catch (e) {
|
||||
next(e.message, null); // pass control to the next handler
|
||||
}
|
||||
});
|
||||
|
||||
} catch (error) {
|
||||
await res.status(500).json({error: `Internal Server error 002 ${error} `});
|
||||
res.status(500).json({error: `Internal Server error 002 ${error} `});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user