diff --git a/scripts/migrate-to-postgres.mjs b/scripts/migrate-to-postgres.mjs index 9c6580f..e96aa55 100644 --- a/scripts/migrate-to-postgres.mjs +++ b/scripts/migrate-to-postgres.mjs @@ -117,7 +117,7 @@ async function migrate() { const usageData = JSON.parse(readFileSync(usagePath, "utf-8")); let uCount = 0; for (const [key, record] of Object.entries(usageData)) { - const r = record as any; + const r = /** @type {any} */ (record); await client.query( `INSERT INTO usage (key, count, month_key) VALUES ($1, $2, $3) ON CONFLICT (key) DO UPDATE SET count = $2, month_key = $3`,