fix: validate account on mapping PUT; gate folders btn during run; prune stale mapping keys; drop dead export
This commit is contained in:
@@ -103,9 +103,6 @@ export const probeFolders = (
|
||||
creds: { src_login: string; src_pass: string; dst_login: string; dst_pass: string },
|
||||
) => api<ProbeResult>(`/api/tasks/${taskId}/probe`, jsonBody(creds))
|
||||
|
||||
export const setFolderMapping = (taskId: number, mapping: Record<string, string>) =>
|
||||
api(`/api/tasks/${taskId}/folder-mapping`, { ...jsonBody({ mapping }), method: 'PUT' })
|
||||
|
||||
export const probeAccountFolders = (taskId: number, accId: number) =>
|
||||
api<ProbeResult>(`/api/tasks/${taskId}/accounts/${accId}/probe`, { method: 'POST' })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user