mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
Fix missing studio image filter
This commit is contained in:
parent
c1ca34303e
commit
44c58d6e3c
1 changed files with 1 additions and 2 deletions
|
|
@ -332,8 +332,7 @@ func studioIsMissingCriterionHandler(qb *studioQueryBuilder, isMissing *string)
|
||||||
if isMissing != nil && *isMissing != "" {
|
if isMissing != nil && *isMissing != "" {
|
||||||
switch *isMissing {
|
switch *isMissing {
|
||||||
case "image":
|
case "image":
|
||||||
f.addLeftJoin("studios_image", "", "studios_image.studio_id = studios.id")
|
f.addWhere("studios.image_blob IS NULL")
|
||||||
f.addWhere("studios_image.studio_id IS NULL")
|
|
||||||
case "stash_id":
|
case "stash_id":
|
||||||
qb.stashIDRepository().join(f, "studio_stash_ids", "studios.id")
|
qb.stashIDRepository().join(f, "studio_stash_ids", "studios.id")
|
||||||
f.addWhere("studio_stash_ids.studio_id IS NULL")
|
f.addWhere("studio_stash_ids.studio_id IS NULL")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue