Commit 4231c7ef05095d70cabc6c4912ad58ee366d378c
1 parent
15adab0fe7
Exists in
master
Add intermediate report on sending request to partner
Showing 1 changed file with 10 additions and 0 deletions Side-by-side Diff
lib/hit/prepaid-topup.js
... | ... | @@ -37,6 +37,16 @@ module.exports = async (xid, task) => { |
37 | 37 | params, |
38 | 38 | }); |
39 | 39 | |
40 | + report(xid, { | |
41 | + trx_id: task.trx_id, | |
42 | + rc: '68', | |
43 | + message: { | |
44 | + xid, | |
45 | + msg: 'Sending request to partner', | |
46 | + endpointUrl, | |
47 | + }, | |
48 | + }); | |
49 | + | |
40 | 50 | const response = await axios.get(endpointUrl, { |
41 | 51 | headers: { |
42 | 52 | 'User-Agent': 'KOMODO-GW-HTTPGETX', |