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.
Files changed (2) hide show
  1. package/db.js +2 -4
  2. 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 } = require('./config');
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
- const {DB_USER, DB_PASSWORD} = process.env;
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsibot-utils",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {