Corrected deprecation errors

parent d9c71fe2
......@@ -22,7 +22,7 @@ module.exports = (connectionUri, relaxed) => {
throw err;
};
return mongoose.createConnection(connectionUri, {useMongoClient: true, poolSize: 25})
return mongoose.createConnection(connectionUri, {useNewUrlParser: true, poolSize: 25})
.then(connection => {
module.exports = {};
......
......@@ -4,7 +4,7 @@
"dependencies": {
"lodash": "latest",
"mongoose": "latest",
"mongoose-gridfs": "^0.2.0",
"mongoose-gridfs": "^0.5.0",
"random-js": "^1.0.8",
"string-to-stream": "^1.1.0",
"winston": "^2.3.1"
......
......@@ -37,13 +37,7 @@ const TaskSchema = new mongoose.Schema({
variant: {
type: Number,
default: 0
}
,
},
compilers: {
type: [{
compiler: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment