diff --git a/src/repository/notification.rs b/src/repository/notification.rs index 00a2bda2777f5ded5a03bae42455b7dc54a2824a..bbe087cc5cd14533443b233952d8ceaeded1fd9d 100644 --- a/src/repository/notification.rs +++ b/src/repository/notification.rs @@ -9,4 +9,9 @@ use lazy_static::lazy_static; pub struct NotificationRepository; - impl NotificationRepository {} \ No newline at end of file + impl NotificationRepository { + pub fn add(notification: Notification) -> Notification { + NOTIFICATIONS.write().unwrap().push(notification.clone()); + return notification; + } + } \ No newline at end of file