From 2c981dc6c09686f59af444834a17baaa10186fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 15 Jun 2026 08:56:11 +0200 Subject: [PATCH] fix: add non-null assertion for DATABASE_URL in sync.ts closure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TypeScript doesn't narrow module-level consts across closure boundaries, so the explicit process.exit(1) guard isn't enough — add ! assertion at the usage site inside run(). Co-Authored-By: Claude Sonnet 4.6 --- scripts/sync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sync.ts b/scripts/sync.ts index 67455e3..0ad4fef 100644 --- a/scripts/sync.ts +++ b/scripts/sync.ts @@ -37,7 +37,7 @@ function parseScore(score: RawScore | undefined) { } async function run() { - const client = postgres(DATABASE_URL, { max: 5 }) + const client = postgres(DATABASE_URL!, { max: 5 }) const db = drizzle(client) const teamCache = new Map()