remove releases from orphaned tracks when bound to release

This commit is contained in:
ari melody 2024-08-31 02:02:33 +01:00
parent 604e2a4a7c
commit ec3ccec73c
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -336,6 +336,7 @@ func UpdateReleaseTracks(release *model.Release) http.Handler {
return
}
new_tracks = append(new_tracks, track)
track.Release = release
}
err = controller.UpdateReleaseTracksDB(global.DB, release, new_tracks)