Commit c766ef3f2d591258257e558da23b6110e2ccc011

Authored by Adhidarma Hadiwinoto
1 parent 931595bcb9
Exists in master

Harga modal produk

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

... ... @@ -9,7 +9,7 @@ const pull = require('komodo-sdk/gateway/pull');
9 9  
10 10 function buy(task) {
11 11 logger.verbose('Got task from CORE', {task: task});
12   -
  12 +
13 13 setTimeout(
14 14 function() {
15 15 if (task.destination % 2) {
... ... @@ -24,7 +24,8 @@ function buy(task) {
24 24 trx_id: task.trx_id,
25 25 rc: '00',
26 26 sn: moment().format('YYYYMMDDHHmmssSSS'),
27   - message: `BERHASIL karena nomor tujuan ${task.destination} adalah nomor genap`
  27 + message: `BERHASIL karena nomor tujuan ${task.destination} adalah nomor genap`,
  28 + amount: config.supplier_price ? config.supplier_price[task.product] : null
28 29 });
29 30 }
30 31