diff options
| author | Ran Guin <[email protected]> | 2021-08-21 01:39:18 -0700 |
|---|---|---|
| committer | Ran Guin <[email protected]> | 2021-08-21 01:39:18 -0700 |
| commit | c0106191e9d25ac51b3142a79cb749b11616e20f (patch) | |
| tree | 8dcf2b56229e8351c5b06148b5bd98efeece8946 /scripts | |
| parent | 06c7fa9fbe8229e2ebe0ed0d4ed3fb5bd0761d6f (diff) | |
| download | coinos-server-c0106191e9d25ac51b3142a79cb749b11616e20f.tar.gz coinos-server-c0106191e9d25ac51b3142a79cb749b11616e20f.zip | |
fix case for table
Diffstat (limited to 'scripts')
| -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) |
