Skip to content

Commit

Permalink
fix: handing the function arguments in the incorrect order
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Nov 26, 2018
1 parent f40638c commit 26235ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/templates/ResourceVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ class ResourceVariables extends BaseService {
}

edit(resourceId: ResourceId, keyId: string, options: RequestOptions) {
const [kId, rId] = [resourceId, keyId].map(encodeURIComponent);
const [rId, kId] = [resourceId, keyId].map(encodeURIComponent);

return RequestHelper.put(this, `${this.resourceType}/${rId}/variables/${kId}`, options);
}

show(resourceId: ResourceId, keyId: string) {
const [kId, rId] = [resourceId, keyId].map(encodeURIComponent);
const [rId, kId] = [resourceId, keyId].map(encodeURIComponent);

return RequestHelper.get(this, `${this.resourceType}/${rId}/variables/${kId}`);
}

remove(resourceId: ResourceId, keyId: string) {
const [kId, rId] = [resourceId, keyId].map(encodeURIComponent);
const [rId, kId] = [resourceId, keyId].map(encodeURIComponent);

return RequestHelper.delete(this, `${this.resourceType}/${rId}/variables/${kId}`);
}
Expand Down

0 comments on commit 26235ff

Please sign in to comment.