From 702fa5754ff39ad06361654a769d7fe788b971ef Mon Sep 17 00:00:00 2001
From: DawnFall19 <ignasius.michael09@gmail.com>
Date: Fri, 28 Mar 2025 17:37:46 +0700
Subject: [PATCH] Implement add 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 af1b5d9..74052e2 100644
--- a/src/repository/notification.rs
+++ b/src/repository/notification.rs
@@ -12,4 +12,9 @@ lazy_static! {
 pub struct NotificationRepository;
 
 impl NotificationRepository {
+    pub fn add(notification: Notification) -> Notification {
+        NOTIFICATIONS.write().unwrap()
+            .push(notification.clone());
+        return notification;
+    }
 }
\ No newline at end of file
-- 
GitLab