wolf_core 0.1.75 → 0.1.77

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccd8da54fe6ce73bf327f86ccfa4b7ea3fd96793833765d21c13ee9a0a571e23
4
- data.tar.gz: 6d090c26876e5c1a051bb27c30dda66d4094750cc3ee7ace28099a33e0d8a3f0
3
+ metadata.gz: '05821c8a43e12c223d1bea471b63fa3e13173b2ee27bdd2271713357b5f96d5a'
4
+ data.tar.gz: cd4ea058a547c3dd15f7675e1bfed8dd06c6e6d8b01d512aba7498be6fd0c2a4
5
5
  SHA512:
6
- metadata.gz: 89a469e772aaabd6c2571d3db5046b38d847620d155b2ccbc54376188700efdfaed915f14eea3c28ff958b555853bdd580f1eebc788b917c890addffd6c0c2dc
7
- data.tar.gz: 845569183bfa0a3ff1d9fece60084f27366a2a7f3ced30fdfbf6061d5570bf1ce362bfa25a672a43d88506e95a2dcf3c0ec7db8560762598a2eea97313c66fbe
6
+ metadata.gz: 3c25c80a6822d8804786dbc5b157f7f8248c135c1f45996fea3f119dd69b23c446d4a1198463b20179920d4a60aa1675e26cfe705174da2de3a4de2db0ef152e
7
+ data.tar.gz: 4a30e4585a2c22fd5a76b27b69349f7f326da6450ad4482197b0571879f01af746d56275fd1c62ca3ccea581fb38e10fea52e274fa82cca71497f8c1d38e3093
@@ -73,7 +73,7 @@ module WolfCore
73
73
  Result.success(data: { operation: :create })
74
74
  end
75
75
 
76
- def upsert_foreign_key(tenant:, source:, source_id:, destination:, destination_id:, auth_token:)
76
+ def upsert_foreign_key(tenant:, auth_token:, source:, source_id:, destination:, destination_id:)
77
77
  foreign_key = get_foreign_key_by_destination(
78
78
  tenant: tenant, source: source, source_id: source_id,
79
79
  destination: destination
@@ -106,13 +106,16 @@ module WolfCore
106
106
 
107
107
  raise_service_error({ message: 'At least one field to update is required to update a foreign key', source: source }) if fields_to_update.blank?
108
108
 
109
+ body = {
110
+ tenant: tenant,
111
+ authentication_token: auth_token,
112
+ uuid: uuid,
113
+ }.merge(fields_to_update)
114
+ log_object body, title: 'update_foreign_key body is'
115
+
109
116
  response = safe_http_put(
110
- url: "#{ENV['FKM_URL']}/Prod/create",
111
- body: {
112
- tenant: tenant,
113
- authentication_token: auth_token,
114
- uuid: uuid,
115
- }.merge(fields_to_update),
117
+ url: "#{ENV['FKM_URL']}/Prod/update",
118
+ body: body,
116
119
  title: 'update_foreign_key response is',
117
120
  error_message: 'Error updating foreign key',
118
121
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.75"
4
+ VERSION = "0.1.77"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.75
4
+ version: 0.1.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo