fix: unexpected column bvid
when inserting to songs
table
This commit is contained in:
parent
cd8aa826e1
commit
00b52c01f7
@ -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)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user