diff --git a/src/repository/notification.rs b/src/repository/notification.rs index cde012e4e8f323a805cd6885f766475d38001ef6..43a9401840807012fdd99858dcb1602059475934 100644 --- a/src/repository/notification.rs +++ b/src/repository/notification.rs @@ -16,4 +16,13 @@ impl NotificationRepository { 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(); + } }