Skip to content

Commit

Permalink
fix: internal state for script triggers v4
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Jun 27, 2022
1 parent 31445d7 commit 63a7401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deno-client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function setResource(path: string, value: any, initializeToTypeIfNo
await new ResourceApi(conf).updateResource(conf.workspace_id, path, { value })
} catch (e) {
if (initializeToTypeIfNotExist && e.code === 404) {
await new ResourceApi(conf).createResource(conf.workspace_id, { path, value: {}, resourceType: initializeToTypeIfNotExist })
await new ResourceApi(conf).createResource(conf.workspace_id, { path, value, resourceType: initializeToTypeIfNotExist })
} else {
throw e
}
Expand Down

0 comments on commit 63a7401

Please sign in to comment.