Skip to content

Commit

Permalink
Merge pull request loopbackio#266 from jesperbruunhansen/patch-2
Browse files Browse the repository at this point in the history
findById takes filter as second argument
  • Loading branch information
crandmck authored Feb 8, 2017
2 parents 62f54c5 + 138e556 commit 38c07b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/en/lb3/Using-current-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = function(MyModel) {
MyModel.log = function(messageId, options) {
const Message = this.app.models.Message;
// IMPORTANT: forward the options arg
return Message.findById(messageId, options)
return Message.findById(messageId, null, options)
.then(msg => {
const token = options && options.accessToken;
const userId = token && token.userId;
Expand Down

0 comments on commit 38c07b7

Please sign in to comment.