From 429864cbc522aa7b747001939c8fe4ace8c28119 Mon Sep 17 00:00:00 2001 From: Ida Made Revindra Dikta Mahendra <idamaderevindra05@gmail.com> Date: Fri, 28 Mar 2025 10:43:56 +0700 Subject: [PATCH] [CHORE]: Implement list_messages function in Notification service --- src/service/notification.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/service/notification.rs b/src/service/notification.rs index ca12a51..1db3391 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -96,4 +96,8 @@ impl NotificationService { let subscriber_result: Notification = NotificationRepository::add(payload); return Ok(subscriber_result); } + + pub fn list_messages() -> Result<Vec<String>> { + return Ok(NotificationRepository::list_all_as_string()); + } } \ No newline at end of file -- GitLab