Remove the sync

This commit is contained in:
CHIEFSOFT\ameye
2024-10-31 17:15:48 -04:00
parent 6b72050c90
commit a1a595c8f0
+2 -5
View File
@@ -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} `});
}