From 0db16e2cd1ba92020a42fb192a37c3c8afb9773e Mon Sep 17 00:00:00 2001 From: Yuhao Su Date: Tue, 16 Jul 2024 22:04:58 -0500 Subject: [PATCH] fix --- src/meta/service/src/notification_service.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/meta/service/src/notification_service.rs b/src/meta/service/src/notification_service.rs index b2b78ba28f19e..5f0abbc8fe0e9 100644 --- a/src/meta/service/src/notification_service.rs +++ b/src/meta/service/src/notification_service.rs @@ -168,6 +168,10 @@ impl NotificationServiceImpl { } fn decrypt_secrets(&self, secrets: Vec) -> MetaResult> { + // Skip getting `secret_store_private_key` if there is no secret + if secrets.is_empty() { + return Ok(vec![]); + } let secret_store_private_key = self .env .opts