Fix performer tag sort (#4018)

* Fix performer tag sort
* Fix entirely unrelated test
This commit is contained in:
DingDongSoLong4 2023-08-11 02:31:56 +02:00 committed by GitHub
parent 38a06be148
commit 8be2c4b6d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,6 @@
package identify
import (
"context"
"errors"
"reflect"
"strconv"
@ -770,7 +769,7 @@ func Test_sceneRelationships_cover(t *testing.T) {
},
}
got, err := tr.cover(context.TODO())
got, err := tr.cover(testCtx)
if (err != nil) != tt.wantErr {
t.Errorf("sceneRelationships.cover() error = %v, wantErr %v", err, tt.wantErr)
return

View File

@ -1034,7 +1034,9 @@ func (qb *PerformerStore) tagsRepository() *joinRepository {
tableName: performersTagsTable,
idColumn: performerIDColumn,
},
fkColumn: tagIDColumn,
fkColumn: tagIDColumn,
foreignTable: tagTable,
orderBy: "tags.name ASC",
}
}