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
|
next(null, resultItem ); // pass control to the next handler
|
||||||
},
|
},
|
||||||
activateCard: async function (req, res, next) {
|
activateCard: function (req, res, next) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
logger.info(req.body);
|
logger.info(req.body);
|
||||||
@@ -323,16 +323,13 @@ var cards = {
|
|||||||
next(null, resultItem); // pass control to the next handler
|
next(null, resultItem); // pass control to the next handler
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
next(e.message, null); // pass control to the next handler
|
next(e.message, null); // pass control to the next handler
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (error) {
|
} 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