gridfs api corrections

parent 847770a8
......@@ -32,28 +32,25 @@ module.exports = (connectionUri, relaxed) => {
module.exports.connection = connection;
let files_fs = gridfs.createModel({
collection: 'files',
model: 'files',
modelName: 'files',
mongooseConnection: connection
});
mongoose.files = files_fs.model;
mongoose.files = files_fs;
let testing_fs = gridfs.createModel({
collection: 'testing',
model: 'testing',
modelName: 'testing',
mongooseConnection: connection
});
mongoose.testingFiles = testing_fs.model;
mongoose.testingFiles = testing_fs;
let solution_fs = gridfs.createModel({
collection: 'solution',
model: 'solution',
modelName: 'solution',
mongooseConnection: connection
});
mongoose.solutionFiles = solution_fs.model;
mongoose.solutionFiles = solution_fs;
module.exports.courses = require('./course');
mongoose.courses = module.exports.courses;
......
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