fix(ui): sort mappings (#3296)

* fix(ui): update sort mapping for title in mediafile repository

* fix(ui): create sort mapping for username in share repository

* fix(ui): create sort mapping for owner_name in playlist repository

* fix(ui): create sort mapping for username in player repository

* fix(ui): remove sort mapping for track number in mediafile repository

* chore: add todo to change user_name
This commit is contained in:
Caio Cotts
2024-09-20 21:36:59 -04:00
committed by GitHub
parent e628aafa4b
commit 11d96f1da4
4 changed files with 21 additions and 14 deletions
+3
View File
@@ -24,6 +24,9 @@ func NewShareRepository(ctx context.Context, db dbx.Builder) model.ShareReposito
r.ctx = ctx
r.db = db
r.registerModel(&model.Share{}, map[string]filterFunc{})
r.sortMappings = map[string]string{
"username": "username",
}
return r
}