Merge branch 'master' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-production

This commit is contained in:
Fadli 2022-11-29 00:03:06 +07:00
commit fde285d7c4

View File

@ -55,6 +55,10 @@ export const doTransaction = async (
console.log('restranshemat', res)
} catch (err) {
console.log('errtranshemat', err);
throw err;
}
if (err.includes('Maaf Saldo anda tidak mencukupi')) {
throw 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali';
} else {
throw err;
}
}
};