From a123e5fe235b34f605ec71b7a9bf5eba66e2385d Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 3 Feb 2023 19:32:22 -0800 Subject: [PATCH] Assign local ID when remixing as unauth --- app/controllers/api/v1/parties_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/api/v1/parties_controller.rb b/app/controllers/api/v1/parties_controller.rb index f1b4249..d46fa63 100644 --- a/app/controllers/api/v1/parties_controller.rb +++ b/app/controllers/api/v1/parties_controller.rb @@ -62,6 +62,8 @@ module Api source_party: @party } + new_party.local_id = party_params[:local_id] if !party_params.nil? + if new_party.save render json: PartyBlueprint.render(new_party, view: :full, root: :party, meta: { remix: true })