Result
This commit is contained in:
+10
-6
@@ -58,14 +58,18 @@ var cards = {
|
||||
country: result.rows[0].country,
|
||||
},
|
||||
},
|
||||
}).then((cardholder)=>{
|
||||
|
||||
console.log(cardholder);
|
||||
let resultItem = {
|
||||
"result": cardholder,
|
||||
"total_record": 0
|
||||
}
|
||||
next(null, resultItem); // pass control to the next handler
|
||||
|
||||
});
|
||||
|
||||
console.log(cardholder);
|
||||
let resultItem = {
|
||||
"result": cardholder,
|
||||
"total_record": 0
|
||||
}
|
||||
next(null, resultItem); // pass control to the next handler
|
||||
|
||||
} catch (e) {
|
||||
next(e.message, null); // pass control to the next handler
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user