diff --git a/lib/shopify_app/managers/webhooks_manager.rb b/lib/shopify_app/managers/webhooks_manager.rb index d02c71a2e..4ee17df67 100644 --- a/lib/shopify_app/managers/webhooks_manager.rb +++ b/lib/shopify_app/managers/webhooks_manager.rb @@ -52,6 +52,7 @@ def add_registrations path: webhook_path, handler: delivery_method == :http ? webhook_job_klass(webhook_path) : nil, fields: attributes[:fields], + metafield_namespaces: attributes[:metafield_namespaces], ) end end diff --git a/test/shopify_app/managers/webhooks_manager_test.rb b/test/shopify_app/managers/webhooks_manager_test.rb index 43195c61f..99fa0d577 100644 --- a/test/shopify_app/managers/webhooks_manager_test.rb +++ b/test/shopify_app/managers/webhooks_manager_test.rb @@ -22,6 +22,7 @@ class ShopifyApp::WebhooksManagerTest < ActiveSupport::TestCase path: "webhooks/orders_updated", handler: OrdersUpdatedJob, fields: nil, + metafield_namespaces: nil, } ShopifyAPI::Webhooks::Registry.expects(:add_registration).with(expected_hash).once @@ -40,6 +41,7 @@ class ShopifyApp::WebhooksManagerTest < ActiveSupport::TestCase path: "/webhooks/orders_updated", handler: OrdersUpdatedJob, fields: nil, + metafield_namespaces: nil, } ShopifyAPI::Webhooks::Registry.expects(:add_registration).with(expected_hash).once