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