rsibot-utils 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +3 -5
- package/package.json +1 -1
package/index.js
CHANGED
@@ -3,12 +3,10 @@ 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
|
7
|
-
const LOGS_PATH =
|
6
|
+
const CNAME = process.env.CNAME;
|
7
|
+
const LOGS_PATH = CNAME?`${CNAME}_logs.txt`:"commander_logs.txt";
|
8
8
|
|
9
|
-
module.exports =
|
10
|
-
|
11
|
-
} {
|
9
|
+
module.exports = {
|
12
10
|
...dbUtils,
|
13
11
|
sortByPercent: function (a, b) {
|
14
12
|
return b.percentChange - a.percentChange;
|