runTask accepts optional accountIds
This commit is contained in:
+2
-1
@@ -138,7 +138,8 @@ export const createAccount = (
|
|||||||
|
|
||||||
export const testAccounts = (id: number) => api(`/api/tasks/${id}/test`, { method: 'POST' })
|
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 {
|
export interface Run {
|
||||||
id: number
|
id: number
|
||||||
|
|||||||
Reference in New Issue
Block a user