From 0e4f0beceeb79e5b39db4aad9c7ff70dc6a8d724 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 19 Oct 2024 00:16:11 -0400 Subject: [PATCH] Result --- service/cards.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/service/cards.js b/service/cards.js index 1edef05..ac5103c 100644 --- a/service/cards.js +++ b/service/cards.js @@ -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 }