mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-18 07:30:29 +00: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
@ -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…
x
Reference in New Issue
Block a user