Fix migration script syntax

This commit is contained in:
DocFast Bot 2026-02-15 10:18:48 +00:00
parent e9d16bf2a3
commit 8a8b7e2a9b

View file

@ -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`,