Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging
This commit is contained in:
commit
8a9ab36ead
|
@ -1,4 +1,5 @@
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
import {NotFoundException} from "@nestjs/common";
|
||||||
|
|
||||||
const irs_url = 'http://h2h.elangpixiu.com/api/h2h';
|
const irs_url = 'http://h2h.elangpixiu.com/api/h2h';
|
||||||
const irs_id = 'PT0005';
|
const irs_id = 'PT0005';
|
||||||
|
@ -140,6 +141,8 @@ export const doTransaction = async (
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log('errtransaction', err);
|
console.log('errtransaction', err);
|
||||||
console.log('errtransaction2', err.response.data);
|
console.log('errtransaction2', err.response.data);
|
||||||
throw 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali';
|
throw new NotFoundException(
|
||||||
|
'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user