From 71977503eecc7f0c4d2dad57ad6cffd88c7668fc Mon Sep 17 00:00:00 2001 From: DawnFall19 <ignasius.michael09@gmail.com> Date: Fri, 28 Mar 2025 18:35:34 +0700 Subject: [PATCH] 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 2c286c7..07331c8 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -95,4 +95,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