(sourceId: string, sessionId: string, updates: Partial<ImportSession>)
| 178 | } |
| 179 | |
| 180 | updateSession(sourceId: string, sessionId: string, updates: Partial<ImportSession>): ImportSession | null { |
| 181 | const sources = this.loadAll() |
| 182 | const ds = sources.find((s) => s.id === sourceId) |
| 183 | if (!ds) return null |
| 184 | const sess = ds.sessions.find((s) => s.id === sessionId) |
| 185 | if (!sess) return null |
| 186 | Object.assign(sess, updates, { id: sessionId }) |
| 187 | this.saveAll(sources) |
| 188 | return sess |
| 189 | } |
| 190 | } |
no test coverage detected