diff options
| author | Ran Guin <[email protected]> | 2021-08-21 01:39:18 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-08-30 16:04:48 -0700 |
| commit | 27cba3a633c287461936f6b751ad7c5c7e69be53 (patch) | |
| tree | ef45ea355f4b7551984499f26e0d07f4e243e1c8 | |
| parent | f96529688038619f19d5e56929b8ef517fda6f1d (diff) | |
| download | coinos-server-27cba3a633c287461936f6b751ad7c5c7e69be53.tar.gz coinos-server-27cba3a633c287461936f6b751ad7c5c7e69be53.zip | |
fix case for table
| -rw-r--r-- | scripts/apiParse.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/apiParse.js b/scripts/apiParse.js index 138a82f4..86fcb7fd 100644 --- a/scripts/apiParse.js +++ b/scripts/apiParse.js @@ -4,7 +4,7 @@ const addUserSearch = function (input, table) { debug('add User Search') var {search, starts_with, contains} = input - if (!table) { table = 'Users' } + if (!table) { table = 'users' } // if (since) cmd = cmd.havingRaw('invoices + payments + deposits + orders > ?', [0]) if (search) { @@ -29,7 +29,6 @@ const addTimeSearch = function (input, field) { var {since} = input if (since) { - condition = field + " >= '" + since + "'" debug('condition: ' + condition) |
