Skip to content
This repository has been archived by the owner on Aug 3, 2018. It is now read-only.

Commit

Permalink
fix(commitment): change ObjectId generation to new api
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin committed Oct 20, 2016
1 parent 45aba8f commit d0ddf3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/routes/_commitment.router.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default (app, router, admin) => {
try {
const result = await Commitment
.findOne({
users: ObjectId.fromString(req.user._doc._id)
users: new ObjectId(req.user._doc._id)
})
.lean()
.then();
Expand Down

0 comments on commit d0ddf3b

Please sign in to comment.