From 6a7e0696f935e76d7195f8a90da1149411b2e180 Mon Sep 17 00:00:00 2001 From: eereiter Date: Tue, 12 Nov 2024 14:20:48 -0500 Subject: [PATCH] CMR-10141-1: Fixing broken build (#2189) * CMR-10141-1: Fixing broken build * CMR-10141-1: Fixing broken build --- metadata-db-app/int-test/cmr/metadata_db/int_test/utility.clj | 4 +++- .../src/cmr/metadata_db/services/sub_notifications.clj | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/metadata-db-app/int-test/cmr/metadata_db/int_test/utility.clj b/metadata-db-app/int-test/cmr/metadata_db/int_test/utility.clj index 1028bf6dc6..d0191b41d0 100644 --- a/metadata-db-app/int-test/cmr/metadata_db/int_test/utility.clj +++ b/metadata-db-app/int-test/cmr/metadata_db/int_test/utility.clj @@ -391,7 +391,9 @@ (is (= (dissoc (expected-concept concept) :coll-concept-id) (dissoc stored-concept :revision-date :transaction-id :created-at :coll-concept-id))) (is (= (expected-concept concept) - (dissoc stored-concept :revision-date :transaction-id :created-at)))))) + (util/dissoc-in + (dissoc stored-concept :revision-date :transaction-id :created-at) + [:extra-fields :aws-arn])))))) (defn is-tag-association-deleted? "Returns if the ta is marked as deleted in metadata-db" diff --git a/metadata-db-app/src/cmr/metadata_db/services/sub_notifications.clj b/metadata-db-app/src/cmr/metadata_db/services/sub_notifications.clj index 2e3620a3e9..990b29750b 100644 --- a/metadata-db-app/src/cmr/metadata_db/services/sub_notifications.clj +++ b/metadata-db-app/src/cmr/metadata_db/services/sub_notifications.clj @@ -15,7 +15,9 @@ (if (sub-note/subscription-exists? db subscription-id) (if (sub-note/sub-notification-exists? db subscription-id) (sub-note/update-sub-notification db subscription-id last-notified-time) - (sub-note/save-sub-notification db subscription-id)) + (do + (sub-note/save-sub-notification db subscription-id) + (sub-note/update-sub-notification db subscription-id last-notified-time))) (errors/throw-service-error :not-found (msg/subscription-not-found subscription-id)))) (defn update-subscription-notification