(req, res) {
getCustomerProfileIds();
/// more login with await ///
try {
updateCustomerPaymentProfile(customer_ID, Payment_ID, formData)
} catch (err) {
console.log('Error! Error! Error! Error! Error! ')
};
I want getCustomerProfileIds() to be executed first before moving to next line. But getCustomerProfileIds() is executing in the end.
Can someone tell me where I'm wrong?
Turn it into a promise
await?
Обсуждают сегодня