Fix pagination in Songs

This commit is contained in:
Deluan
2020-05-23 00:17:35 -04:00
parent 55ad5c9fc9
commit 9331be67a3
+1 -1
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(r.newSelectWithAnnotation("id", options...)) return r.count(Select(), options...)
} }
func (r mediaFileRepository) Exists(id string) (bool, error) { func (r mediaFileRepository) Exists(id string) (bool, error) {