Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Replace sessionCancelState with sessionCancel
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Aug 5, 2022
1 parent 5ab4375 commit 8bcb405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/wf-prompts/index.ts
Expand Up @@ -42,7 +42,7 @@ async function resumeState (api: apiClients.Automation, { sessionID, stateID }:
}

async function cancelState (api: apiClients.Automation, { sessionID, stateID }: automation.Prompt): Promise<unknown> {
return api.sessionDeleteState({ sessionID, stateID })
return api.sessionCancel({ sessionID, stateID })
}

function onlyFresh (existing: Array<automation.Prompt>, fresh: Array<automation.Prompt>): Array<automation.Prompt> {
Expand Down

0 comments on commit 8bcb405

Please sign in to comment.