Skip to content

Commit

Permalink
fix(optimize): fix labelVariables method
Browse files Browse the repository at this point in the history
it used GET, and it needs to use POST. This is now fixed.
  • Loading branch information
jwulf committed Jun 13, 2024
1 parent 31f9d45 commit 40ff8be
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/optimize/lib/OptimizeApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,11 @@ export class OptimizeApiClient {
async labelVariables(variableLabels: VariableLabels) {
const headers = await this.getHeaders()
const rest = await this.rest
return rest('public/variables/labels', {
headers,
body: JSON.stringify(variableLabels),
}).json()
return rest
.post('public/variables/labels', {
headers,
body: JSON.stringify(variableLabels),
})
.json()
}
}

0 comments on commit 40ff8be

Please sign in to comment.