Fixed tag association failing if tag is missing.

This commit is contained in:
DebaucheryLibrarian 2025-12-15 01:36:08 +01:00
parent 2e64965fe5
commit b4cb66111f
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ function withRelations(queryBuilder, withMedia) {
async function matchReleaseTags(releases) {
const tags = releases
.map((release) => release.tags).flat()
.map((tag) => tag.trim().toLowerCase())
.map((tag) => tag?.trim().toLowerCase())
.filter(Boolean);
const tagEntries = await knex('tags')