diff --git a/src/repository/notification.rs b/src/repository/notification.rs
index 5071dde5a40c6aaf326528ef18e0a4d5718ec567..8e59507335552ebcd0d506c6d635ad4775662f2d 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