rsibot-utils 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/db.js +2 -4
- package/package.json +1 -1
package/db.js
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
const mongoose = require('mongoose');
|
2
|
-
const { DB_USER, DB_PASSWORD } =
|
2
|
+
const { DB_USER, DB_PASSWORD } = process.env;
|
3
3
|
const utils = require('./index.js');
|
4
4
|
|
5
5
|
mongoose.Promise = global.Promise;
|
6
6
|
const { Schema } = mongoose;
|
7
|
-
// Create a schema
|
8
7
|
|
9
8
|
const hotCoinsSchema = new Schema(
|
10
9
|
{
|
@@ -34,8 +33,7 @@ const queueSchema = new Schema(
|
|
34
33
|
versionKey: false,
|
35
34
|
},
|
36
35
|
);
|
37
|
-
|
38
|
-
// Create a model
|
36
|
+
|
39
37
|
mongoose
|
40
38
|
.connect(`mongodb+srv://${DB_USER}:${DB_PASSWORD}@rsi-bot.d6kbq.mongodb.net/rsi?retryWrites=true&w=majority`, {
|
41
39
|
useNewUrlParser: true,
|