package provision import ( "context" "github.com/carlosframework/platform/internal/release" ) // UpdateRecord is claimRawUpdateRecord under the app mutation of the record's // own account and app. It rewrites an existing record whose protected // (lifecycle) fields must stay equal, so it is an ordinary app write; create, // delete, move and retirement keep their lifecycle operations and are not // routed here. Ordinary stores do not implement release.AppMutationRunner, so // with host claims off the body runs unchanged. func UpdateRecord(ctx context.Context, s release.Store, rec Record, etag string) error { return release.WithAppMutation(ctx, s, rec.Account, rec.App, "provision.UpdateRecord", func(ctx context.Context) error { return claimRawUpdateRecord(ctx, s, rec, etag) }) }