diff --git a/CHANGELOG.md b/CHANGELOG.md index d95f1972..b6e00435 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- support adhoc tasks + ## [10.1.1] - 2026-04-23 ### Dependencies diff --git a/src/apps/scheduled-tasks-service.ts b/src/apps/scheduled-tasks-service.ts index 17aa5323..24b2addb 100644 --- a/src/apps/scheduled-tasks-service.ts +++ b/src/apps/scheduled-tasks-service.ts @@ -225,6 +225,7 @@ export async function completeTask({ taskActionId, taskGroupInstanceId, completedAt, + isAdhoc, abortSignal, }: { formsAppId: number @@ -232,13 +233,21 @@ export async function completeTask({ taskActionId: string taskGroupInstanceId: string | undefined completedAt: string | undefined + isAdhoc?: boolean abortSignal?: AbortSignal }): Promise { const url = `${tenants.current.apiOrigin}/completed-tasks` try { return await postRequest( url, - { formsAppId, taskId, taskActionId, taskGroupInstanceId, completedAt }, + { + formsAppId, + taskId, + taskActionId, + taskGroupInstanceId, + completedAt, + isAdhoc, + }, abortSignal, ) } catch (err) {