From 00b52c01f79699ed51e4691c4a28c077a4ac1bc2 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Fri, 21 Mar 2025 20:51:34 +0800 Subject: [PATCH] fix: unexpected column `bvid` when inserting to `songs` table --- lib/mq/task/collectSongs.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/mq/task/collectSongs.ts b/lib/mq/task/collectSongs.ts index 7a7daad..9c49823 100644 --- a/lib/mq/task/collectSongs.ts +++ b/lib/mq/task/collectSongs.ts @@ -15,10 +15,9 @@ export async function collectSongs(client: Client) { export async function insertIntoSongs(client: Client, aid: number) { await client.queryObject( ` - INSERT INTO songs (aid, bvid, published_at, duration) + INSERT INTO songs (aid, published_at, duration) VALUES ( $1, - (SELECT bvid FROM bilibili_metadata WHERE aid = $1), (SELECT published_at FROM bilibili_metadata WHERE aid = $1), (SELECT duration FROM bilibili_metadata WHERE aid = $1) )