Reworked tag matching. Added tag filter groundwork.

This commit is contained in:
2019-10-28 00:58:54 +01:00
parent 2c32ed6549
commit 0e784a274f
7 changed files with 338 additions and 290 deletions

View File

@@ -9,7 +9,7 @@ async function curateRelease(release) {
.where({ release_id: release.id })
.leftJoin('actors', 'actors.id', 'actors_associated.actor_id'),
knex('tags_associated')
.select('tags.tag', 'tags.slug')
.select('tags.name', 'tags.slug')
.where({ release_id: release.id })
.leftJoin('tags', 'tags.id', 'tags_associated.tag_id'),
knex('media')