Commit 0e44d7d676c0bc26b98982ab004bc673a401bbad

Authored by Adhidarma Hadiwinoto
1 parent 4f89e9e046
Exists in master

Log

Showing 2 changed files with 2 additions and 1 deletions Side-by-side Diff

lib/core-callback/sender.js
... ... @@ -39,7 +39,7 @@ const urlConcatQs = require('../url-concat-qs');
39 39 const sender = async (data, xid, retry) => {
40 40 const params = {
41 41 httpgetx_xid: xid,
42   - command: data.command,
  42 + command: data.command || 'BUY',
43 43  
44 44 request_id: data.request_id && data.request_id.toString(),
45 45 transaction_id: data.transaction_id && data.transaction_id.toString(),
lib/webhook-sender.js
... ... @@ -76,6 +76,7 @@ const sender = async (xid, webhookType, body, retry) => {
76 76 partner: config.webhook.url,
77 77 trxId: body.transaction_id,
78 78 request_id: body.request_id,
  79 + retried: retry || 0,
79 80 });
80 81  
81 82 await axios.post(config.webhook.url, {