mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
Refactor loadGenres, remove duplication
This commit is contained in:
parent
de90152a71
commit
31fcab07d2
7 changed files with 68 additions and 82 deletions
|
@ -42,6 +42,10 @@ func loggedUser(ctx context.Context) *model.User {
|
|||
}
|
||||
}
|
||||
|
||||
func (r sqlRepository) getTableName() string {
|
||||
return r.tableName
|
||||
}
|
||||
|
||||
func (r sqlRepository) newSelect(options ...model.QueryOptions) SelectBuilder {
|
||||
sq := Select().From(r.tableName)
|
||||
sq = r.applyOptions(sq, options...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue