(sourceId: string, sessionId: string, deleteData?: boolean)
| 447 | } |
| 448 | |
| 449 | async function removeImportSession(sourceId: string, sessionId: string, deleteData?: boolean) { |
| 450 | try { |
| 451 | const ok = await transport.removeImportSession(sourceId, sessionId, deleteData) |
| 452 | if (ok) { |
| 453 | await fetchDataSources() |
| 454 | if (deleteData) useSessionStore().loadSessions() |
| 455 | } |
| 456 | return ok |
| 457 | } catch (err) { |
| 458 | console.error('[ApiServerStore] Failed to remove import session:', err) |
| 459 | return false |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | // ==================== 同步 ==================== |
| 464 |
nothing calls this directly
no test coverage detected