Skip to content

Commit 4440a73

Browse files
committed
uses the new count subscription response format
1 parent 6f3446c commit 4440a73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kuzzle-sdk",
3-
"version": "1.0.0-alpha.1",
3+
"version": "1.0.0-alpha.2",
44
"description": "A connector for the Kuzzle API",
55
"author": "The Kuzzle Team <[email protected]>",
66
"repository": {

src/kuzzleRoom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ KuzzleRoom.prototype.count = function (cb) {
125125
return cb(err);
126126
}
127127

128-
cb(null, res);
128+
cb(null, res.count);
129129
});
130130

131131
return this;

0 commit comments

Comments
 (0)