Skip to content

Commit 4da5727

Browse files
committed
updated to work with kuzzle v0.3.1
1 parent 4440a73 commit 4da5727

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-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.2",
3+
"version": "1.0.0-alpha.3",
44
"description": "A connector for the Kuzzle API",
55
"author": "The Kuzzle Team <[email protected]>",
66
"repository": {

src/kuzzle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ Kuzzle.prototype.query = function (collection, controller, action, query, option
393393
now = Date.now(),
394394
object = {
395395
action: action,
396+
controller: controller,
396397
metadata: this.metadata
397398
},
398399
self = this;
@@ -440,7 +441,7 @@ Kuzzle.prototype.query = function (collection, controller, action, query, option
440441
});
441442
}
442443

443-
self.socket.emit(controller, object);
444+
self.socket.emit('kuzzle', object);
444445

445446
// Track requests made to allow KuzzleRoom.subscribeToSelf to work
446447
self.requestHistory[object.requestId] = now;

0 commit comments

Comments
 (0)