diff --git a/src/repository/notification.rs b/src/repository/notification.rs index bbe087cc5cd14533443b233952d8ceaeded1fd9d..88969cd2b624cfbe914aeb2fecc86d961fce22ef 100644 --- a/src/repository/notification.rs +++ b/src/repository/notification.rs @@ -14,4 +14,13 @@ use lazy_static::lazy_static; NOTIFICATIONS.write().unwrap().push(notification.clone()); return notification; } + + pub fn list_all_as_string() -> Vec<String> { + return NOTIFICATIONS + .read() + .unwrap() + .iter() + .map(|f| format!("{}", f.clone())) + .collect(); + } } \ No newline at end of file