Fix party creation

This commit is contained in:
Justin Edmund 2023-01-08 21:45:31 -08:00
parent 2a465aca3b
commit 433bd19f6d

View file

@ -8,7 +8,9 @@ module Api
before_action :set, only: %w[update destroy]
def create
party = Party.new(party_params.merge(user: current_user))
party = Party.new
party.user = current_user if current_user
party.attributes = party_params if party_params
# unless party_params.empty?
# party.attributes = party_params