Fix pagination in Songs when filtered by starred

This commit is contained in:
Deluan 2020-05-23 00:43:45 -04:00
parent 9331be67a3
commit e811816021

View File

@ -35,7 +35,7 @@ func NewMediaFileRepository(ctx context.Context, o orm.Ormer) *mediaFileReposito
} }
func (r mediaFileRepository) CountAll(options ...model.QueryOptions) (int64, error) { func (r mediaFileRepository) CountAll(options ...model.QueryOptions) (int64, error) {
return r.count(Select(), options...) return r.count(r.newSelectWithAnnotation("media_file.id"), options...)
} }
func (r mediaFileRepository) Exists(id string) (bool, error) { func (r mediaFileRepository) Exists(id string) (bool, error) {