lib/cts/mpx/entry.rb in cts-mpx-1.1.0 vs lib/cts/mpx/entry.rb in cts-mpx-1.1.1
- old
+ new
@@ -69,11 +69,11 @@
Driver::Exceptions.raise_unless_required_keyword? binding, :user
Driver::Exceptions.raise_unless_argument_error? user, User
Driver::Exceptions.raise_unless_argument_error? fields, String if fields
Driver::Exceptions.raise_unless_reference? id
- Registry.fetch_and_store_domain user: user, account_id: account_id
+ Registry.fetch_and_store_domain user, account_id
response = Services::Data.get account_id: account_id, user: user, service: service, endpoint: endpoint, fields: fields, ids: id.split("/").last
entries = response.data['entries']
raise "could not load #{id}" unless entries.any?
@@ -91,10 +91,10 @@
raise ArgumentError, "fields['ownerId'] is a required field" unless fields['ownerId']
raise ArgumentError, "endpoint is a required attribute" unless endpoint
raise ArgumentError, "service is a required attribute" unless service
p = Driver::Page.create entries: [fields.to_h], xmlns: fields.xmlns
- Registry.fetch_and_store_domain user: user, account_id: fields["ownerId"]
+ Registry.fetch_and_store_domain user, fields["ownerId"]
response_params = { account_id: fields['ownerId'], user: user, service: service, endpoint: endpoint, page: p }
result = Services::Data.send(id ? :put : :post, response_params)
result.data if result.service_exception?