From 0730493ddd7988885df7523b0c4c4eb55aadcd8e Mon Sep 17 00:00:00 2001
From: Scallss <pascalhafidz2005@gmail.com>
Date: Fri, 28 Mar 2025 17:50:14 +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 2e42203..8f3a74b 100644
--- a/src/service/notification.rs
+++ b/src/service/notification.rs
@@ -97,4 +97,8 @@ impl NotificationService {
         let subcriber_result: Notification = NotificationRepository::add(payload);
         return Ok(subcriber_result);
     }
+
+    pub fn list_messages() -> Result<Vec<String>> {
+        return Ok(NotificationRepository::list_all_as_string());
+    }
 }
\ No newline at end of file
-- 
GitLab