Skip to content

Commit cdbb787

Browse files
committed
Merge pull request #32 from kuzzleio/bugfix
bugfix: KuzzleDocument.publish now complies to Kuzzle 0.6 API
2 parents 0c30ca0 + e3443e0 commit cdbb787

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

dist/kuzzle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ KuzzleDocument.prototype.publish = function (options) {
21232123

21242124
data.persist = false;
21252125

2126-
this.kuzzle.query(this.collection, 'write', 'create', data, options);
2126+
this.kuzzle.query(this.collection, 'write', 'publish', data, options);
21272127

21282128
return this;
21292129
};

dist/kuzzle.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/kuzzle.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.8",
3+
"version": "1.0.9",
44
"description": "Official Javascript SDK for Kuzzle",
55
"author": "The Kuzzle Team <[email protected]>",
66
"repository": {

src/kuzzleDocument.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ KuzzleDocument.prototype.publish = function (options) {
295295

296296
data.persist = false;
297297

298-
this.kuzzle.query(this.collection, 'write', 'create', data, options);
298+
this.kuzzle.query(this.collection, 'write', 'publish', data, options);
299299

300300
return this;
301301
};

test/kuzzle/constructor.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ describe('Kuzzle constructor', () => {
351351
KuzzleRewired = rewire(kuzzleSource),
352352
revert = KuzzleRewired.__set__('dequeue', function () { dequeued = true; });
353353

354-
this.timeout(50);
354+
this.timeout(500);
355355

356356
kuzzle = new KuzzleRewired('nowhere', {connect: 'manual', autoReplay: false, autoQueue: false});
357357
kuzzle.io = iostub;

test/kuzzleDocument/methods.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ describe('KuzzleDocument methods', function () {
404404
error = null;
405405
expectedQuery = {
406406
collection: 'foo',
407-
action: 'create',
407+
action: 'publish',
408408
controller: 'write',
409409
body: {}
410410
};

0 commit comments

Comments
 (0)