rsibot-utils 1.0.0 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/db.js +1 -1
- package/index.js +2 -0
- package/package.json +1 -1
package/db.js
CHANGED
package/index.js
CHANGED
@@ -3,11 +3,13 @@ const path = require('path');
|
|
3
3
|
const util = require('util');
|
4
4
|
const exec = util.promisify(require('child_process').exec);
|
5
5
|
const dbUtils = require('./db')
|
6
|
+
const config = require('./config')
|
6
7
|
const cname = process.env.CNAME;
|
7
8
|
const LOGS_PATH = cname?`${cname}_logs.txt`:"commander_logs.txt";
|
8
9
|
|
9
10
|
module.exports = {
|
10
11
|
...dbUtils,
|
12
|
+
...config,
|
11
13
|
sortByPercent: function (a, b) {
|
12
14
|
return b.percentChange - a.percentChange;
|
13
15
|
},
|