diff options
| author | Adam Soltys <[email protected]> | 2021-10-27 10:12:25 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-10-27 10:15:46 -0700 |
| commit | a2a2bd06d5c26bff19759a08faffd1eeea03d892 (patch) | |
| tree | 2c5050d74908b8b2f4f2da267bce3616afeff01c /scripts | |
| parent | 2bee0ad5f422677952976968623d07a1ecf8e484 (diff) | |
| download | coinos-server-a2a2bd06d5c26bff19759a08faffd1eeea03d892.tar.gz coinos-server-a2a2bd06d5c26bff19759a08faffd1eeea03d892.zip | |
update uuid, refactor sync function
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/apiParse.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scripts/apiParse.js b/scripts/apiParse.js index 86fcb7fd..7e54b654 100644 --- a/scripts/apiParse.js +++ b/scripts/apiParse.js @@ -1,7 +1,4 @@ -var debug = require('debug')('debug') - const addUserSearch = function (input, table) { - debug('add User Search') var {search, starts_with, contains} = input if (!table) { table = 'users' } @@ -16,7 +13,6 @@ const addUserSearch = function (input, table) { var condition = "(" + table + ".email like '" + search + "' OR " + table + ".username like '" + search + "')" - debug('condition: ' + condition) return condition } else { return '' @@ -24,13 +20,11 @@ const addUserSearch = function (input, table) { } const addTimeSearch = function (input, field) { - debug('add time Search') if (!field) { field = 'updatedAt' } var {since} = input if (since) { condition = field + " >= '" + since + "'" - debug('condition: ' + condition) return condition } else { |
