diff --git a/app/services/asset_manager/asset_updater.rb b/app/services/asset_manager/asset_updater.rb index f1798d2769ac..ff96dafd1fd1 100644 --- a/app/services/asset_manager/asset_updater.rb +++ b/app/services/asset_manager/asset_updater.rb @@ -13,11 +13,11 @@ def initialize(attachment_data_id, legacy_url_path) end end - def self.call(*args) - new.call(*args) + def self.call(...) + new.call(...) end - def call(asset_data, legacy_url_path, new_attributes = {}) + def call(asset_data, legacy_url_path, **new_attributes) attributes = find_asset_by(legacy_url_path) asset_deleted = attributes["deleted"] diff --git a/app/services/asset_manager/attachment_updater/update.rb b/app/services/asset_manager/attachment_updater/update.rb index 2be39e4de56d..941b27489812 100644 --- a/app/services/asset_manager/attachment_updater/update.rb +++ b/app/services/asset_manager/attachment_updater/update.rb @@ -15,7 +15,7 @@ def call AssetManager::AssetUpdater.call( attachment_data, legacy_url_path, - new_attributes.deep_stringify_keys, + **new_attributes.deep_stringify_keys, ) end