(ids: readonly string[])
| 1283 | * were accounted for here. |
| 1284 | */ |
| 1285 | export function removeSessionCronTasks(ids: readonly string[]): number { |
| 1286 | if (ids.length === 0) return 0 |
| 1287 | const idSet = new Set(ids) |
| 1288 | const remaining = STATE.sessionCronTasks.filter(t => !idSet.has(t.id)) |
| 1289 | const removed = STATE.sessionCronTasks.length - remaining.length |
| 1290 | if (removed === 0) return 0 |
| 1291 | STATE.sessionCronTasks = remaining |
| 1292 | return removed |
| 1293 | } |
| 1294 | |
| 1295 | export function setSessionTrustAccepted(accepted: boolean): void { |
| 1296 | STATE.sessionTrustAccepted = accepted |
no test coverage detected