- push logs send callback

This commit is contained in:
Fadli 2022-12-15 15:39:38 +07:00
parent 7f412abfa7
commit f4e6c5ac3c

View File

@ -1670,6 +1670,7 @@ export class TransactionService {
);
if (!partnerData.callback_url) {
console.log('nopartnerurl', 'msk');
this.logger.error(`Call to partner failed, reason: no callback url`);
return false;
@ -1684,9 +1685,10 @@ export class TransactionService {
try {
const res = await axios.get(url);
console.log('successcallback', res);
return res;
} catch (e) {
console.log('errorsendcallback', 'msk');
this.logger.error(`Call to partner failed, reason: ${e.message}`);
return false;