Skip to content

Commit af6fdda

Browse files
committed
Merge pull request #30 from kuzzleio/bugfix
Bugfix
2 parents 2b64d78 + 863b98e commit af6fdda

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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.6",
3+
"version": "1.0.7",
44
"description": "Official Javascript SDK for Kuzzle",
55
"author": "The Kuzzle Team <support@kuzzle.io>",
66
"repository": {

src/kuzzleDataCollection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ KuzzleDataCollection.prototype.publishMessage = function (document, options) {
392392

393393
data.persist = false;
394394
data = this.kuzzle.addHeaders(data, this.headers);
395-
this.kuzzle.query(this.collection, 'write', 'create', data, options);
395+
this.kuzzle.query(this.collection, 'write', 'publish', data, options);
396396

397397
return this;
398398
};

test/kuzzleDataCollection/methods.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ describe('KuzzleDataCollection methods', function () {
632632
error = null;
633633
expectedQuery = {
634634
collection: 'foo',
635-
action: 'create',
635+
action: 'publish',
636636
controller: 'write',
637637
body: {}
638638
};

0 commit comments

Comments
 (0)