From d153cae55b5d6391bea6692d33aa9ae233f9fbcf Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 18 Jun 2023 23:00:41 -0700 Subject: [PATCH] Update controllers This updates the GridCharacters and GridWeapons controllers to accept the new fields `awakening_id` and `awakening_level` from clients --- app/controllers/api/v1/grid_characters_controller.rb | 3 ++- app/controllers/api/v1/grid_weapons_controller.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v1/grid_characters_controller.rb b/app/controllers/api/v1/grid_characters_controller.rb index a3b2da9..8c10cdc 100644 --- a/app/controllers/api/v1/grid_characters_controller.rb +++ b/app/controllers/api/v1/grid_characters_controller.rb @@ -147,9 +147,10 @@ module Api def character_params params.require(:character).permit(:id, :party_id, :character_id, :position, :uncap_level, :transcendence_step, :perpetuity, + :awakening_id, :awakening_level, ring1: %i[modifier strength], ring2: %i[modifier strength], ring3: %i[modifier strength], ring4: %i[modifier strength], - earring: %i[modifier strength], awakening: %i[type level]) + earring: %i[modifier strength]) end def resolve_params diff --git a/app/controllers/api/v1/grid_weapons_controller.rb b/app/controllers/api/v1/grid_weapons_controller.rb index 3f46061..491e53f 100644 --- a/app/controllers/api/v1/grid_weapons_controller.rb +++ b/app/controllers/api/v1/grid_weapons_controller.rb @@ -198,7 +198,7 @@ module Api :position, :mainhand, :uncap_level, :element, :weapon_key1_id, :weapon_key2_id, :weapon_key3_id, :ax_modifier1, :ax_modifier2, :ax_strength1, :ax_strength2, - :awakening_type, :awakening_level + :awakening_id, :awakening_level ) end