mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-24 18:27:08 +02:00
fix(pglite): join user_account in the share repository
The user table was renamed to user_account for PostgreSQL (user is a reserved word), but the share list still joined 'user' and returned 500.
This commit is contained in:
parent
ba088e7b14
commit
088a4131b8
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ func (r *shareRepository) Delete(id string) error {
|
|||
}
|
||||
|
||||
func (r *shareRepository) selectShare(options ...model.QueryOptions) SelectBuilder {
|
||||
return r.newSelect(options...).Join("user u on u.id = share.user_id").
|
||||
return r.newSelect(options...).Join("user_account u on u.id = share.user_id").
|
||||
Columns("share.*", "user_name as username").
|
||||
Where(r.addRestriction())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue