Commit 41496a8163e609b5cb88ed1ef005a7252ccdea74

Authored by Adhidarma Hadiwinoto
1 parent d61442cc0d
Exists in master

LISTDEPOSIT honour config.ascending_mutation or config.ascending_deposit

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

lib/command-handler/listdeposit.js
  1 +const config = require('komodo-sdk/config');
1 2 const coreEndpoint = '/histories/mutations/deposit-and-transfer';
2 3  
3 4 const commandError = require('./error');
... ... @@ -31,6 +32,7 @@ function execute(tokens, params, cb) {
31 32 asker_terminal_name: params.from,
32 33 asker_terminal_password: tokens[idxPin],
33 34 created_date: tokens.length < 3 ? null : tokens[1],
  35 + ascending: (config.ascending_mutation || config.ascending_deposit) ? 'true' : 'false',
34 36 };
35 37  
36 38 coreapi(coreEndpoint, coreParams, 'GET', cb);