From bedac9b2d20a47f19cddd8819b0bc7bf826db53b Mon Sep 17 00:00:00 2001
From: noQils <daffaaqilmahmud@gmail.com>
Date: Thu, 27 Mar 2025 16:17:36 +0700
Subject: [PATCH] Implement list_messages function in Notification service.

---
 src/service/notification.rs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/service/notification.rs b/src/service/notification.rs
index a579302..28e4398 100644
--- a/src/service/notification.rs
+++ b/src/service/notification.rs
@@ -94,5 +94,9 @@ 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());  
+    }  
+
 }
-- 
GitLab