From 540cc2918d0ffc29a1a3447f7e851a3c482c03de Mon Sep 17 00:00:00 2001
From: Ida Made Revindra Dikta Mahendra <idamaderevindra05@gmail.com>
Date: Fri, 28 Mar 2025 10:07:44 +0700
Subject: [PATCH] [CHORE]: 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 5071dde..8e59507 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