Revert "update to newest mongoose"

This reverts commit 7b05891ba0e87e4cf00fd6b1ea87d7406dc70989.
This commit is contained in:
Shane Kilkelly
2017-05-10 15:31:17 +01:00
parent 08567ff220
commit 01ee104f77
15 changed files with 95 additions and 77 deletions
@@ -534,7 +534,7 @@ module.exports = ProjectEntityHandler =
fileSystem: "#{path.fileSystem}/#{element.name}"
mongo: path.mongo
id = element._id+''
element._id = require('../../infrastructure/Mongoose').Types.ObjectId(id)
element._id = require('mongoose').Types.ObjectId(id)
conditions = _id:project._id
mongopath = "#{path.mongo}.#{type}"
update = "$push":{}