mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-05 06:42:12 +03:00
chore: remove unused command-code auth cleanup export (#5371)
Integrated into release/v3.8.41 — dead-code removal (typecheck:core EXIT 0, 70 affected tests green, fabricated-docs clean). Thanks @JxnLexn.
This commit is contained in:
@@ -207,14 +207,3 @@ export function consumeCommandCodeAuthSecret(
|
||||
};
|
||||
})() as ConsumedCommandCodeAuthSecret | null;
|
||||
}
|
||||
|
||||
export function cleanupExpiredCommandCodeAuthSessions(now = nowIso()): number {
|
||||
const result = db()
|
||||
.prepare(
|
||||
`UPDATE command_code_auth_sessions
|
||||
SET status = 'expired', updated_at = ?
|
||||
WHERE status IN ('pending', 'received') AND expires_at <= ?`
|
||||
)
|
||||
.run(now, now);
|
||||
return result.changes ?? 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user