(ids: readonly string[])
| 1321 | * were accounted for here. |
| 1322 | */ |
| 1323 | export function removeSessionCronTasks(ids: readonly string[]): number { |
| 1324 | if (ids.length === 0) return 0 |
| 1325 | const idSet = new Set(ids) |
| 1326 | const remaining = STATE.sessionCronTasks.filter(t => !idSet.has(t.id)) |
| 1327 | const removed = STATE.sessionCronTasks.length - remaining.length |
| 1328 | if (removed === 0) return 0 |
| 1329 | STATE.sessionCronTasks = remaining |
| 1330 | return removed |
| 1331 | } |
| 1332 | |
| 1333 | export function setSessionTrustAccepted(accepted: boolean): void { |
| 1334 | STATE.sessionTrustAccepted = accepted |
no test coverage detected