From 19d727628076acd868c0516b95c43fa173091dfe Mon Sep 17 00:00:00 2001 From: alikia2x Date: Sun, 30 Mar 2025 03:24:11 +0800 Subject: [PATCH] fix: missing param in SQL for inserting into bilibili_metadata --- packages/crawler/mq/task/getVideoDetails.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/crawler/mq/task/getVideoDetails.ts b/packages/crawler/mq/task/getVideoDetails.ts index 71e7566..ee015fd 100644 --- a/packages/crawler/mq/task/getVideoDetails.ts +++ b/packages/crawler/mq/task/getVideoDetails.ts @@ -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);