fix: missing param in SQL for inserting into bilibili_metadata

This commit is contained in:
alikia2x (寒寒) 2025-03-30 03:24:11 +08:00
parent 106049bfc6
commit 19d7276280
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

View File

@ -27,7 +27,7 @@ export async function insertVideoInfo(client: Client, aid: number) {
const cover = data.View.pic;
await client.queryObject(
`INSERT INTO bilibili_metadata (aid, bvid, description, uid, tags, title, published_at, duration, cover_url)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8)`,
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)`,
[aid, bvid, desc, uid, tags, title, published_at, duration, cover],
);
const userExists = await userExistsInBiliUsers(client, aid);