From 198efcfeec3d0872905fd7aee53d4dd9e8cbad6c Mon Sep 17 00:00:00 2001 From: lukaszreszke Date: Mon, 29 Jul 2024 12:35:01 +0200 Subject: [PATCH] Remove unused param --- rails_application/app/controllers/products_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rails_application/app/controllers/products_controller.rb b/rails_application/app/controllers/products_controller.rb index b1b08e841..472f879bc 100644 --- a/rails_application/app/controllers/products_controller.rb +++ b/rails_application/app/controllers/products_controller.rb @@ -57,7 +57,7 @@ def update private def create_product(product_id, name) - command_bus.(create_product_cmd(product_id, name)) + command_bus.(create_product_cmd(product_id)) command_bus.(name_product_cmd(product_id, name)) end @@ -78,7 +78,7 @@ def set_product_name(product_id, name) command_bus.(name_product_cmd(product_id, name)) end - def create_product_cmd(product_id, name) + def create_product_cmd(product_id) ProductCatalog::RegisterProduct.new(product_id: product_id) end