Merge pull request #71 from jedmund/unauth-remix

Assign local ID when remixing as unauthorized account
This commit is contained in:
Justin Edmund 2023-02-03 19:33:27 -08:00 committed by GitHub
commit 5f92d64373
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,8 @@ module Api
source_party: @party source_party: @party
} }
new_party.local_id = party_params[:local_id] if !party_params.nil?
if new_party.save if new_party.save
render json: PartyBlueprint.render(new_party, view: :full, root: :party, render json: PartyBlueprint.render(new_party, view: :full, root: :party,
meta: { remix: true }) meta: { remix: true })