diff --git a/src/repository/notification.rs b/src/repository/notification.rs index 82313241644dfbf7b73be7f227313fb34ec7a3a0..cde012e4e8f323a805cd6885f766475d38001ef6 100644 --- a/src/repository/notification.rs +++ b/src/repository/notification.rs @@ -11,4 +11,9 @@ lazy_static! { pub struct NotificationRepository; -impl NotificationRepository {} +impl NotificationRepository { + pub fn add(notification: Notification) -> Notification { + NOTIFICATIONS.write().unwrap().push(notification.clone()); + return notification; + } +}