Skip to content

Commit

Permalink
Applied PR corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Nataniel López committed May 26, 2020
1 parent a4259b1 commit 9cbdcc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/helpers/endpoint.js
Expand Up @@ -12,8 +12,8 @@ class Endpoint {
get: '{{core}}/query',
update: '{{core}}/update/json/docs?commit={{commitUpdates}}&commitWithin={{commitWithin}}',
updateCommands: '{{core}}/update?commit={{commitUpdates}}&commitWithin={{commitWithin}}',
createCore: 'admin/cores?action=CREATE&name={{name}}&configSet=_default',
coreExists: 'admin/cores?action=STATUS&core={{name}}',
createCore: 'admin/cores?action=CREATE&name={{core}}&configSet=_default',
coreExists: 'admin/cores?action=STATUS&core={{core}}',
ping: '{{core}}/admin/ping',
schema: '{{core}}/schema',
admin: '{{core}}/admin'
Expand Down
4 changes: 2 additions & 2 deletions lib/solr.js
Expand Up @@ -75,7 +75,7 @@ class Solr {
*/
async coreExists() {

const endpoint = Endpoint.create(Endpoint.presets.coreExists, this.url, null, { name: this.core });
const endpoint = Endpoint.create(Endpoint.presets.coreExists, this.url, this.core);

const res = await this.request.post(endpoint);

Expand Down Expand Up @@ -430,7 +430,7 @@ class Solr {
if(coreExists)
return;

const endpoint = Endpoint.create(Endpoint.presets.createCore, this.url, null, { name: this.core });
const endpoint = Endpoint.create(Endpoint.presets.createCore, this.url, this.core);
const res = await this.request.post(endpoint);

Response.validate(res);
Expand Down

0 comments on commit 9cbdcc1

Please sign in to comment.