aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRan Guin <[email protected]>2021-08-21 01:39:18 -0700
committerRan Guin <[email protected]>2021-08-21 01:39:18 -0700
commitc0106191e9d25ac51b3142a79cb749b11616e20f (patch)
tree8dcf2b56229e8351c5b06148b5bd98efeece8946
parent06c7fa9fbe8229e2ebe0ed0d4ed3fb5bd0761d6f (diff)
downloadcoinos-server-c0106191e9d25ac51b3142a79cb749b11616e20f.tar.gz
coinos-server-c0106191e9d25ac51b3142a79cb749b11616e20f.zip
fix case for table
-rw-r--r--scripts/apiParse.js3
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)