Commit 7792c4ae0d759f642722420e4e5a675262087d24

Authored by Adhidarma Hadiwinoto
1 parent c57c2452ba
Exists in master

ESLINT command-handler/listdeposit

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

lib/command-handler/listdeposit.js
1 1 const config = require('komodo-sdk/config');
  2 +
2 3 const coreEndpoint = '/histories/mutations/deposit-and-transfer';
3 4  
4 5 const commandError = require('./error');
... ... @@ -8,18 +9,17 @@ function help(keyword) {
8 9 return `
9 10 Format perintah utk list deposit dan transfer:
10 11  
11   -${ keyword.toUpperCase() }.<PIN> atau ${ keyword.toUpperCase() }.<TANGGAL>.<PIN>.
  12 +${keyword.toUpperCase()}.<PIN> atau ${keyword.toUpperCase()}.<TANGGAL>.<PIN>.
12 13  
13 14 <TANGGAL> dlm format YYYY-MM-DD, contoh 2018-12-31 untuk tanggal 31 Desember 2018.
14 15 `.trim();
15 16 }
16 17  
17 18 function execute(tokens, params, cb) {
18   -
19 19 if (!tokens || tokens.length < 2) {
20 20 const responseParams = {
21   - body: `${ commandError.ERR_INVALID_FORMAT }. ${ help(tokens[0]) }`
22   - }
  21 + body: `${commandError.ERR_INVALID_FORMAT}. ${help(tokens[0])}`,
  22 + };
23 23  
24 24 cb(null, null, responseParams);
25 25 return;
... ... @@ -38,4 +38,4 @@ function execute(tokens, params, cb) {
38 38 coreapi(coreEndpoint, coreParams, 'GET', cb);
39 39 }
40 40  
41   -module.exports = execute;
42 41 \ No newline at end of file
  42 +module.exports = execute;