This commit is contained in:
CHIEFSOFT\ameye
2024-10-19 00:16:11 -04:00
parent fed5cd7c89
commit 0e4f0becee
+5 -1
View File
@@ -58,7 +58,7 @@ var cards = {
country: result.rows[0].country, country: result.rows[0].country,
}, },
}, },
}); }).then((cardholder)=>{
console.log(cardholder); console.log(cardholder);
let resultItem = { let resultItem = {
@@ -66,6 +66,10 @@ var cards = {
"total_record": 0 "total_record": 0
} }
next(null, resultItem); // pass control to the next handler next(null, resultItem); // pass control to the next handler
});
} catch (e) { } catch (e) {
next(e.message, null); // pass control to the next handler next(e.message, null); // pass control to the next handler
} }