Fix migration script syntax
This commit is contained in:
parent
e9d16bf2a3
commit
8a8b7e2a9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue