(ids: readonly string[])
| 1305 | * were accounted for here. |
| 1306 | */ |
| 1307 | export function removeSessionCronTasks(ids: readonly string[]): number { |
| 1308 | if (ids.length === 0) return 0 |
| 1309 | const idSet = new Set(ids) |
| 1310 | const remaining = STATE.sessionCronTasks.filter(t => !idSet.has(t.id)) |
| 1311 | const removed = STATE.sessionCronTasks.length - remaining.length |
| 1312 | if (removed === 0) return 0 |
| 1313 | STATE.sessionCronTasks = remaining |
| 1314 | return removed |
| 1315 | } |
| 1316 | |
| 1317 | export function setSessionTrustAccepted(accepted: boolean): void { |
| 1318 | STATE.sessionTrustAccepted = accepted |
no test coverage detected