From af8a7d3a7103fea43788ed1b420ca24b420091ad Mon Sep 17 00:00:00 2001
From: Ida Made Revindra Dikta Mahendra <idamaderevindra05@gmail.com>
Date: Fri, 28 Mar 2025 10:11:23 +0700
Subject: [PATCH] [CHORE]: Implement list_all_as_string function in
 Notification repository

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

diff --git a/src/repository/notification.rs b/src/repository/notification.rs
index 8e59507..1b94910 100644
--- a/src/repository/notification.rs
+++ b/src/repository/notification.rs
@@ -17,4 +17,9 @@ impl NotificationRepository {
             .push(notification.clone());
         return notification;
     }
+
+    pub fn list_all_as_string() -> Vec<String> {
+        return NOTIFICATIONS.read().unwrap()
+        .iter().map(|f| format!("{}", f.clone())).collect();
+    }
 }
\ No newline at end of file
-- 
GitLab