uc3-dmp-event-bridge 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-event-bridge/publisher.rb +1 -2
- data/lib/uc3-dmp-event-bridge/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: a199db3840c84143f8c0eb7aac339855c28f62aafbd8da9c340d66b8efef4f69
|
4
|
+
data.tar.gz: 98ae731675661ea983d19144e220eec26bcc051b5b466473d5a6e10019818fd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5c906475aab8a9af69e37eebaf236df582433f70f2da91f145aac65ad587c2cd95058744338e42b061e0739919364b55c6081266ae2d443e3fa05c7bc355b79
|
7
|
+
data.tar.gz: 86ddb225de17f68ee0e519734496ddef9f4470819bdeb71e3b36069f37e7a8e5838d2738bed0baf75ed47ff00517414e571a8af21a83324a39f8fa5e701a511a
|
@@ -27,7 +27,7 @@ module Uc3DmpEventBridge
|
|
27
27
|
|
28
28
|
# Publish an event to the EventBus so that other Lambdas can do their thing
|
29
29
|
# rubocop:disable Metrics/AbcSize
|
30
|
-
def publish(source:, dmp:, event_type: DEFAULT_EVENT_TYPE, detail
|
30
|
+
def publish(source:, dmp:, event_type: DEFAULT_EVENT_TYPE, detail: nil, logger: nil)
|
31
31
|
source = "#{source} -> #{SOURCE}.publish"
|
32
32
|
detail = detail.nil? ? _generate_detail(dmp: dmp).to_json : (detail.is_a?(Hash) ? detail.to_json : detail.to_s)
|
33
33
|
|
@@ -61,7 +61,6 @@ module Uc3DmpEventBridge
|
|
61
61
|
SK: dmp['SK'],
|
62
62
|
dmphub_provenance_id: dmp.fetch('dmphub_provenance_id', nil),
|
63
63
|
dmproadmap_links: dmp.fetch('dmproadmap_links', {}),
|
64
|
-
dmproadmap_related_identifiers: relateds,
|
65
64
|
dmphub_updater_is_provenance: dmp.fetch('dmphub_updater_is_provenance', false)
|
66
65
|
}
|
67
66
|
end
|