Remove an unused eslint-disable directive in main.ts
Some checks failed
CD / Promote to Int (push) Blocked by required conditions
CI / Lint, typecheck, test (push) Failing after 1m11s
CI / Auth e2e pack (push) Has been skipped
CI / Import/export fidelity gate (push) Has been skipped
CI / Build container images (push) Has been skipped
CD / Build and push images (push) Successful in 2m48s
CD / Deploy to Test (push) Successful in 9s
CD / Smoke tests against Test (push) Has been cancelled
Some checks failed
CD / Promote to Int (push) Blocked by required conditions
CI / Lint, typecheck, test (push) Failing after 1m11s
CI / Auth e2e pack (push) Has been skipped
CI / Import/export fidelity gate (push) Has been skipped
CI / Build container images (push) Has been skipped
CD / Build and push images (push) Successful in 2m48s
CD / Deploy to Test (push) Successful in 9s
CD / Smoke tests against Test (push) Has been cancelled
no-console is not enforced for apps/api, so the directive on the boot-time restore-wait log line was flagged as unused and failed the lint gate (--report-unused-disable-directives). Keep the console.log and its rationale as a plain comment. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EwZ4jR4KFAPvpjWevfUGX1
This commit is contained in:
parent
874c37c9ef
commit
a7760335cb
@ -47,7 +47,8 @@ async function waitWhileRestoreRuns(backupsDir: string): Promise<void> {
|
||||
if (!status || status.state !== 'running') return;
|
||||
const ageMinutes = (Date.now() - new Date(status.startedAt).getTime()) / 60_000;
|
||||
if (!Number.isFinite(ageMinutes) || ageMinutes > RESTORE_STALE_MAX_AGE_MINUTES) return;
|
||||
// eslint-disable-next-line no-console -- the pino logger does not exist yet
|
||||
// The pino logger does not exist yet at this point in boot, so this one
|
||||
// status line goes to the console directly (no-console is not enforced here).
|
||||
console.log(`restore of ${status.backupId} is running — waiting before touching the database`);
|
||||
await sleep(2000);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user