card_activate

This commit is contained in:
CHIEFSOFT\ameye
2024-10-31 17:04:41 -04:00
parent c793d0e0ea
commit 6b72050c90
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -63,8 +63,8 @@ const cardsControllers = {
res.status(200).json({
'status': 'OK',
'internal_return': 0,
'result_list': dist.result,
'total_record': dist.total_record
'card_activate': dist.card_activate,
'total_record': 0
})
});
}
+3 -3
View File
@@ -308,7 +308,7 @@ var cards = {
{
status: 'active',
}
).then((card)=>{
).then((cardActivateResult)=>{
if ( card.id !== undefined && card.id.length > 10 ){
Qstring = " UPDATE members_card_request " +
@@ -317,7 +317,7 @@ var cards = {
logger.info(Qstring);
db.query(Qstring, async function (err, result) {
let resultItem = {
"card": card,
"card_activate": cardActivateResult,
"total_record": 0
}
next(null, resultItem); // pass control to the next handler
@@ -330,7 +330,7 @@ var cards = {
next(e.message, null); // pass control to the next handler
}
});
} catch (error) {
await res.status(500).json({error: `Internal Server error 002 ${error} `});
}