aboutsummaryrefslogtreecommitdiffstats
path: root/staging.config.js
blob: 111cfa4c2cf1002379c981eb8feb7499e77555b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module.exports = {
  apps: [
    {
      name: "coinosstaging",
      watch: ["src"],
      script: "index.js",
      env: {
        COMMON_VARIABLE: "true",
      },
      env_development: {
        NODE_ENV: "development",
      },
    },
  ],
};
>= 'users' } // if (since) cmd = cmd.havingRaw('invoices + payments + deposits + orders > ?', [0]) if (search) { if (starts_with) { search = search + '%' } else if (contains) { search = '%' + search + '%' } var condition = "(" + table + ".email like '" + search + "' OR " + table + ".username like '" + search + "')" return condition } else { return '' } } const addTimeSearch = function (input, field) { if (!field) { field = 'updatedAt' } var {since} = input if (since) { condition = field + " >= '" + since + "'" return condition } else { return '' } } module.exports = { addUserSearch: addUserSearch, addTimeSearch: addTimeSearch, }