diff --git a/src/repository/notification.rs b/src/repository/notification.rs index 3a1393e8addda91c67af7cf0a3887b7d03e6686c..202f9ca3e3c6143de45f1847551c7b0dc291c251 100644 --- a/src/repository/notification.rs +++ b/src/repository/notification.rs @@ -16,4 +16,9 @@ impl NotificationRepository { 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