card_activate
This commit is contained in:
+3
-3
@@ -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} `});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user