wolf_core 0.1.56 → 0.1.57
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 +3 -3
- 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: 736dd572a5f6ff7d684f7d652155b164a01053c4e0f57e507293a85f5d7bcc94
|
4
|
+
data.tar.gz: 2f9c1fb31258f397dbfb5640ae536b1dcc84a9a29aff80935c061485839ec8e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88c042b4b9e69154a8e0acce57fe484001ab87b97e39490dc7c923b54cea6a6e7c97cb2e360e407a9b9cf39039ad6b1619ab48be51ddcbdb58f56868dd594d3c
|
7
|
+
data.tar.gz: a22b02e2acff59cdfe1b6e61bcc7ca7182fafb7a629ebcf38007c3fa759f087fbb8bfc234faba7343ab018bf39e1cd04aec437027e272ee9f2481fb6b77019d9
|
@@ -47,12 +47,12 @@ module WolfCore
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def find_or_create_foreign_key(tenant:, source:, source_id:, destination:, destination_id:)
|
50
|
-
|
50
|
+
found_destination_id = get_foreign_key_destination_id(
|
51
51
|
tenant: tenant, source: source, source_id: source_id,
|
52
52
|
destination: destination
|
53
53
|
)
|
54
|
-
log_object "find_or_create_foreign_key
|
55
|
-
return Result.success(data: { operation: :find }) if
|
54
|
+
log_object "find_or_create_foreign_key found_destination_id is #{found_destination_id}"
|
55
|
+
return Result.success(data: { operation: :find }) if found_destination_id.present?
|
56
56
|
create_foreign_key(
|
57
57
|
tenant: tenant, source: source, source_id: source_id,
|
58
58
|
destination: destination, destination_id: destination_id
|
data/lib/wolf_core/version.rb
CHANGED