Skip to content

Commit

Permalink
Remove _id from bulk:write 2e route (#1314)
Browse files Browse the repository at this point in the history
Remove _id from url for 2e write route
  • Loading branch information
Aschen authored and benoitvidis committed Jun 5, 2019
1 parent 430806b commit ea9205d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion features/support/api/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class HttpApi {
let url = `${this.util.getIndex(index)}/${this.util.getCollection(collection)}/_write`;

if (_id) {
url = `${this.util.getIndex(index)}/${this.util.getCollection(collection)}/${_id}/_write`;
url += `?_id=${_id}`;
}

const options = {
Expand Down
1 change: 0 additions & 1 deletion lib/api/kuzzle.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ class Kuzzle extends EventEmitter {
this.router.init();
this.statistics.init();

/** @type {RealtimeEngine} */
this.realtime = new Koncorde({
seed: this.config.internal.hash.seed,
maxMinTerms: this.config.limits.subscriptionMinterms
Expand Down
1 change: 0 additions & 1 deletion lib/config/httpRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ module.exports = [

{verb: 'post', url: '/:index/:collection/_mWrite', controller: 'bulk', action: 'mWrite'},
{verb: 'post', url: '/:index/:collection/_write', controller: 'bulk', action: 'write'},
{verb: 'post', url: '/:index/:collection/:_id/_write', controller: 'bulk', action: 'write'},

/* DEPRECATED - will be removed in v2 */
{verb: 'post', url: '/_getStats', controller: 'server', action: 'getStats'},
Expand Down

0 comments on commit ea9205d

Please sign in to comment.