From b92e68ccd28476ab59b9d1661ee113cc3a3ce45c Mon Sep 17 00:00:00 2001
From: TheoKevH <theodorekevinh@gmail.com>
Date: Fri, 28 Mar 2025 20:28: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 92a8ef8..df43079 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_message() -> Result<Vec<String>> {
+        return Ok(NotificationRepository::list_all_as_string());
+    }
 }
\ No newline at end of file
-- 
GitLab