wolf_core 0.1.75 → 0.1.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccd8da54fe6ce73bf327f86ccfa4b7ea3fd96793833765d21c13ee9a0a571e23
4
- data.tar.gz: 6d090c26876e5c1a051bb27c30dda66d4094750cc3ee7ace28099a33e0d8a3f0
3
+ metadata.gz: 0b0bff7730ff3db46ccd6a31c14ed5b6b64f1d0b7e05c2002c3e063ee48e850d
4
+ data.tar.gz: a8d8c86518a9f0bf643d1e0accc6d0cf45f00c87d09d8b1ac2d7ed554f27b8ae
5
5
  SHA512:
6
- metadata.gz: 89a469e772aaabd6c2571d3db5046b38d847620d155b2ccbc54376188700efdfaed915f14eea3c28ff958b555853bdd580f1eebc788b917c890addffd6c0c2dc
7
- data.tar.gz: 845569183bfa0a3ff1d9fece60084f27366a2a7f3ced30fdfbf6061d5570bf1ce362bfa25a672a43d88506e95a2dcf3c0ec7db8560762598a2eea97313c66fbe
6
+ metadata.gz: 3d6a120c83810ca778647da4ebf4411422c28fe2a7c1c1a430ebb058907763b46a8909b0d11798f6761e2d617bc24ff6d21c455d23aff265d7334f0418ea927f
7
+ data.tar.gz: 9c16cdde0aa2d2f053767bda90ece23fd1130b469b8609f2dee72096d69692b5e6fad87f9dc9d3a8202a943d3b6b2008af6846c97bf7bc650e7e5701291e9c30
@@ -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
117
  url: "#{ENV['FKM_URL']}/Prod/create",
111
- body: {
112
- tenant: tenant,
113
- authentication_token: auth_token,
114
- uuid: uuid,
115
- }.merge(fields_to_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.76"
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.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo