Fix Performers Is Missing: stash ID filter (#1681)

* Fix Performers Is Missing: stash ID filter.

Fixes #1679
This commit is contained in:
gitgiggety
2021-08-30 03:46:41 +02:00
committed by GitHub
parent 50cb6a9c79
commit 1774a3600c
2 changed files with 4 additions and 0 deletions

View File

@@ -345,6 +345,9 @@ func performerIsMissingCriterionHandler(qb *performerQueryBuilder, isMissing *st
case "image":
f.addJoin(performersImageTable, "image_join", "image_join.performer_id = performers.id")
f.addWhere("image_join.performer_id IS NULL")
case "stash_id":
qb.stashIDRepository().join(f, "performer_stash_ids", "performers.id")
f.addWhere("performer_stash_ids.performer_id IS NULL")
default:
f.addWhere("(performers." + *isMissing + " IS NULL OR TRIM(performers." + *isMissing + ") = '')")
}