diff --git a/src/repository/notification.rs b/src/repository/notification.rs index af1b5d931145d80816e1c01fac8b1777f6a9ccba..74052e2ad05093b2cfdd3fe4be7e66ad08eea8c7 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