From 2e5036aad5dfe2a52d73892b3cb824853fcc1176 Mon Sep 17 00:00:00 2001 From: Vassiliy Yegorov Date: Wed, 8 Jul 2026 13:44:53 +0700 Subject: [PATCH] runTask accepts optional accountIds --- web/src/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/api.ts b/web/src/api.ts index 93e3e94..36a0073 100644 --- a/web/src/api.ts +++ b/web/src/api.ts @@ -138,7 +138,8 @@ export const createAccount = ( export const testAccounts = (id: number) => api(`/api/tasks/${id}/test`, { method: 'POST' }) -export const runTask = (id: number) => api(`/api/tasks/${id}/run`, { method: 'POST' }) +export const runTask = (id: number, accountIds?: number[]) => + api(`/api/tasks/${id}/run`, accountIds?.length ? jsonBody({ account_ids: accountIds }) : { method: 'POST' }) export interface Run { id: number