diff --git a/src/repository/notification.rs b/src/repository/notification.rs index 74052e2ad05093b2cfdd3fe4be7e66ad08eea8c7..dbe029f034c7ac43ca82c74ec0ff15f14de6d496 100644 --- a/src/repository/notification.rs +++ b/src/repository/notification.rs @@ -17,4 +17,9 @@ impl NotificationRepository { .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