Skip to content

Commit af1a742

Browse files
committed
fix
1 parent ac78714 commit af1a742

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 1.2.0 (August 30, 2021)
1+
## 1.2.0 (November 12, 2021)
22
* Added `fetchAllSecretsForWorkspace` method to `PlatformApiLogicClient`
33

44
## 1.1.7 (August 30, 2021)

lib/platformApi/PlatformApiLogicClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
9191
*/
9292
async fetchAllSecretsForWorkspace(options: any = {}) {
9393
const { workspaceId } = options;
94+
if (!workspaceId) throw new Error(`workspaceId not provided, can't fetch secrets`)
9495
const secrets = await this.makeRequest({ method: 'GET', url: `/workspaces/${workspaceId}/secrets` });
9596
const resp: any = [];
9697

0 commit comments

Comments
 (0)