From e6b3c3aef9c17c939d50a2546d8990fcd0d2f545 Mon Sep 17 00:00:00 2001
From: DawnFall19 <ignasius.michael09@gmail.com>
Date: Fri, 28 Mar 2025 17:39:13 +0700
Subject: [PATCH] Implement list_all_as_string function in Subscriber
 repository.

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

diff --git a/src/repository/notification.rs b/src/repository/notification.rs
index 74052e2..dbe029f 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