diff --git a/src/repository/notification.rs b/src/repository/notification.rs index 44f2bd4d46f8c321f4879a3a945d53eff5fb2b8c..0896000a80d79c54cf5523f57021a685393c257c 100644 --- a/src/repository/notification.rs +++ b/src/repository/notification.rs @@ -11,5 +11,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