Removed unnecessary mongo connection string.
This commit is contained in:
		@@ -1,10 +1,5 @@
 | 
				
			|||||||
const path = require('path');
 | 
					const path = require('path');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const mongoose = require('mongoose');
 | 
					 | 
				
			||||||
mongoose.connect('mongodb://localhost:27017/vinlottis', {
 | 
					 | 
				
			||||||
  useNewUrlParser: true
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const Highscore = require(path.join(__dirname + '/../schemas/Highscore'));
 | 
					const Highscore = require(path.join(__dirname + '/../schemas/Highscore'));
 | 
				
			||||||
const Wine = require(path.join(__dirname + '/../schemas/Wine'));
 | 
					const Wine = require(path.join(__dirname + '/../schemas/Wine'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,4 @@
 | 
				
			|||||||
const path = require("path");
 | 
					const path = require("path");
 | 
				
			||||||
const mongoose = require("mongoose");
 | 
					 | 
				
			||||||
mongoose.connect("mongodb://localhost:27017/vinlottis", {
 | 
					 | 
				
			||||||
  useNewUrlParser: true
 | 
					 | 
				
			||||||
});
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
const Purchase = require(path.join(__dirname + "/../schemas/Purchase"));
 | 
					const Purchase = require(path.join(__dirname + "/../schemas/Purchase"));
 | 
				
			||||||
const Wine = require(path.join(__dirname + "/../schemas/Wine"));
 | 
					const Wine = require(path.join(__dirname + "/../schemas/Wine"));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,13 +2,8 @@ const express = require("express");
 | 
				
			|||||||
const path = require("path");
 | 
					const path = require("path");
 | 
				
			||||||
const router = express.Router();
 | 
					const router = express.Router();
 | 
				
			||||||
const webpush = require("web-push"); //requiring the web-push module
 | 
					const webpush = require("web-push"); //requiring the web-push module
 | 
				
			||||||
const mongoose = require("mongoose");
 | 
					 | 
				
			||||||
const schedule = require("node-schedule");
 | 
					const schedule = require("node-schedule");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
mongoose.connect("mongodb://localhost:27017/vinlottis", {
 | 
					 | 
				
			||||||
  useNewUrlParser: true
 | 
					 | 
				
			||||||
});
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const mustBeAuthenticated = require(path.join(
 | 
					const mustBeAuthenticated = require(path.join(
 | 
				
			||||||
  __dirname + "/../middleware/mustBeAuthenticated"
 | 
					  __dirname + "/../middleware/mustBeAuthenticated"
 | 
				
			||||||
));
 | 
					));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,9 +1,5 @@
 | 
				
			|||||||
const express = require("express");
 | 
					const express = require("express");
 | 
				
			||||||
const path = require("path");
 | 
					const path = require("path");
 | 
				
			||||||
const mongoose = require("mongoose");
 | 
					 | 
				
			||||||
mongoose.connect("mongodb://localhost:27017/vinlottis", {
 | 
					 | 
				
			||||||
  useNewUrlParser: true
 | 
					 | 
				
			||||||
});
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
const sub = require(path.join(__dirname + "/../api/subscriptions"));
 | 
					const sub = require(path.join(__dirname + "/../api/subscriptions"));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user