diff --git a/docs/api-model.md b/docs/api-model.md index 6a96e45a..0d54201b 100644 --- a/docs/api-model.md +++ b/docs/api-model.md @@ -257,7 +257,7 @@ User.findById(23, function(err, user) { Find a single instance that matches the given where expression. ```js -User.findOne({id: 23}, function(err, user) { +User.findOne({where: {id: 23}}, function(err, user) { console.info(user.id); // 23 }); ``` diff --git a/package.json b/package.json index 9608391c..b46085c4 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "Platform", "mBaaS" ], - "version": "1.7.0", + "version": "1.7.1", "scripts": { "test": "mocha -R spec" },