From 536d377a9718fc0f60f0e9b5278ae31baaabb5a2 Mon Sep 17 00:00:00 2001 From: Rand McKinney Date: Tue, 11 Mar 2014 09:21:01 -0700 Subject: [PATCH 1/2] Update api-model.md Correct 'where' clause in findOne() method. --- docs/api-model.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }); ``` From 2c510a7b2e6b8176a3abdd6c143e283a7e661299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 18 Mar 2014 18:15:24 +0100 Subject: [PATCH 2/2] v1.7.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" },