From 0166b3b453fda734a8ca8ad109959721876e32e8 Mon Sep 17 00:00:00 2001 From: rafliesa <rflisaa@gmail.com> Date: Fri, 28 Mar 2025 19:24:11 +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 3a3d09e..ecf3106 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -87,4 +87,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