From ec97c595f7459d2e245a54bb3a7b349010fdb94c Mon Sep 17 00:00:00 2001
From: dzak27567 <fadhlurohmandzaki@gmail.com>
Date: Thu, 27 Mar 2025 14:19:00 +0700
Subject: [PATCH] Implement list_messages function in Notification service.

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

diff --git a/src/service/notification.rs b/src/service/notification.rs
index 7867c4b..42415b7 100644
--- a/src/service/notification.rs
+++ b/src/service/notification.rs
@@ -96,5 +96,8 @@ impl NotificationService {
         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