diff --git a/rails_application/app/controllers/products_controller.rb b/rails_application/app/controllers/products_controller.rb index b1b08e84..472f879b 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