Update controllers

This updates the GridCharacters and GridWeapons controllers to accept the new fields `awakening_id` and `awakening_level` from clients
This commit is contained in:
Justin Edmund 2023-06-18 23:00:41 -07:00
parent 1f67964aa9
commit 7cbd1161fa
2 changed files with 3 additions and 2 deletions

View file

@ -147,9 +147,10 @@ module Api
def character_params def character_params
params.require(:character).permit(:id, :party_id, :character_id, :position, params.require(:character).permit(:id, :party_id, :character_id, :position,
:uncap_level, :transcendence_step, :perpetuity, :uncap_level, :transcendence_step, :perpetuity,
:awakening_id, :awakening_level,
ring1: %i[modifier strength], ring2: %i[modifier strength], ring1: %i[modifier strength], ring2: %i[modifier strength],
ring3: %i[modifier strength], ring4: %i[modifier strength], ring3: %i[modifier strength], ring4: %i[modifier strength],
earring: %i[modifier strength], awakening: %i[type level]) earring: %i[modifier strength])
end end
def resolve_params def resolve_params

View file

@ -198,7 +198,7 @@ module Api
:position, :mainhand, :uncap_level, :element, :position, :mainhand, :uncap_level, :element,
:weapon_key1_id, :weapon_key2_id, :weapon_key3_id, :weapon_key1_id, :weapon_key2_id, :weapon_key3_id,
:ax_modifier1, :ax_modifier2, :ax_strength1, :ax_strength2, :ax_modifier1, :ax_modifier2, :ax_strength1, :ax_strength2,
:awakening_type, :awakening_level :awakening_id, :awakening_level
) )
end end