Compare commits

...

1 Commits

Author SHA1 Message Date
01e076d745
fix: incorrect condition for filter the tags 2025-03-23 13:44:03 +08:00

View File

@ -19,7 +19,7 @@ export async function insertVideoInfo(client: Client, aid: number) {
const desc = data.View.desc;
const uid = data.View.owner.mid;
const tags = data.Tags
.filter((tag) => !["old_channel", "topic"].indexOf(tag.tag_type))
.filter((tag) => ["old_channel", "topic"].includes(tag.tag_type))
.map((tag) => tag.tag_name).join(",");
const title = data.View.title;
const published_at = formatTimestampToPsql(data.View.pubdate * SECOND + 8 * HOUR);