mirror of
https://github.com/mastodon/mastodon.git
synced 2026-10-01 07:39:44 -05:00
Typo: Update ip_blocks_controller .update! to match .create! (#40054)
This commit is contained in:
@@ -33,7 +33,7 @@ class Api::V1::Admin::IpBlocksController < Api::BaseController
|
||||
|
||||
def update
|
||||
authorize @ip_block, :update?
|
||||
@ip_block.update(resource_params)
|
||||
@ip_block.update!(resource_params)
|
||||
log_action :update, @ip_block
|
||||
render json: @ip_block, serializer: REST::Admin::IpBlockSerializer
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user