wolf_core 0.1.75 → 0.1.76
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wolf_core/infrastructure/fkm_operations.rb +9 -6
- data/lib/wolf_core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b0bff7730ff3db46ccd6a31c14ed5b6b64f1d0b7e05c2002c3e063ee48e850d
|
4
|
+
data.tar.gz: a8d8c86518a9f0bf643d1e0accc6d0cf45f00c87d09d8b1ac2d7ed554f27b8ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
)
|
data/lib/wolf_core/version.rb
CHANGED