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 +4 -4
- data/lib/wolf_core/infrastructure/fkm_operations.rb +10 -7
- 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: '05821c8a43e12c223d1bea471b63fa3e13173b2ee27bdd2271713357b5f96d5a'
|
4
|
+
data.tar.gz: cd4ea058a547c3dd15f7675e1bfed8dd06c6e6d8b01d512aba7498be6fd0c2a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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/
|
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
|
)
|
data/lib/wolf_core/version.rb
CHANGED