Merge pull request #29 from jedmund/fix-gridweaponscontroller

Fix bug introduced in last PR
This commit is contained in:
Justin Edmund 2022-12-30 06:10:27 -08:00 committed by GitHub
commit 31a7c67621
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,8 +41,10 @@ module Api
end
# Render the grid weapon view as a string and assign it to a variable
return unless weapon.save!
grid_weapon_view = render_grid_weapon_view(weapon, conflict_position)
render json: grid_weapon_view, status: :created if weapon.save!
render json: grid_weapon_view, status: :created
end
def resolve