mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-16 02:45:54 -07:00
fix: associate artists with merged items
This commit is contained in:
parent
bf9b84a171
commit
dc5dcbd474
6 changed files with 232 additions and 20 deletions
|
|
@ -200,6 +200,16 @@ func (d *Psql) UpdateAlbum(ctx context.Context, opts db.UpdateAlbumOpts) error {
|
|||
return err
|
||||
}
|
||||
}
|
||||
if opts.VariousArtistsUpdate {
|
||||
l.Debug().Msgf("Updating release with ID %d with image %s", opts.ID, opts.Image)
|
||||
err := qtx.UpdateReleaseVariousArtists(ctx, repository.UpdateReleaseVariousArtistsParams{
|
||||
ID: opts.ID,
|
||||
VariousArtists: opts.VariousArtistsValue,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return tx.Commit(ctx)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue