fix: validate account on mapping PUT; gate folders btn during run; prune stale mapping keys; drop dead export

This commit is contained in:
2026-07-03 12:08:22 +07:00
parent 964e4cfc33
commit b59ce67497
4 changed files with 11 additions and 5 deletions
-3
View File
@@ -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' })