Skip to content

Commit

Permalink
fix apiKey.update
Browse files Browse the repository at this point in the history
  • Loading branch information
countnazgul committed Aug 28, 2023
1 parent 3f7c911 commit 19df41f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## 0.14.1 - 2023-08-28

- `apiKey.update` correctly passes an array with one element instead of an object only (Qlik responds with 400 in that case)

## 0.14.0 - 2023-08-28

- [#82](https://github.com/Informatiqal/qlik-saas-api/issues/82) internal change. When performing `update` instead of just return the status first call `init` method to get the latest "true" version of the data from Qlik
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qlik-saas-api",
"version": "0.14.0",
"version": "0.14.1",
"description": "Interact with Qlik Sense SaaS REST API",
"author": {
"email": "[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions src/modules/APIKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ export class APIKey {
if (!arg.description)
throw new Error(`apiKey.update: "description" parameter is required`);

const data = {
const data = [{
op: "replace",
path: `/description`,
value: arg.description,
};
}];

let updateStatus = 0;
return await this.saasClient
Expand Down

0 comments on commit 19df41f

Please sign in to comment.