Updates for new grids module

parent fbcba0f8
......@@ -32,7 +32,7 @@ module.exports = (connectionUri, relaxed) => {
let files_fs = require('mongoose-gridfs')({
collection: 'files',
model: 'files',
mongooseConnection: connection.db
mongooseConnection: connection
});
mongoose.files = files_fs.model;
......@@ -40,7 +40,7 @@ module.exports = (connectionUri, relaxed) => {
let testing_fs = require('mongoose-gridfs')({
collection: 'testing',
model: 'testing',
mongooseConnection: connection.db
mongooseConnection: connection
});
mongoose.testingFiles = testing_fs.model;
......@@ -48,7 +48,7 @@ module.exports = (connectionUri, relaxed) => {
let solution_fs = require('mongoose-gridfs')({
collection: 'solution',
model: 'solution',
mongooseConnection: connection.db
mongooseConnection: connection
});
mongoose.solutionFiles = solution_fs.model;
......
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