diff --git a/src/repository/notification.rs b/src/repository/notification.rs index e32eb2e770211813ba140a51eeb3f9343fea7c13..3abfd09320d7f1cf36262c6fabe6cdb18a38bfc5 100644 --- a/src/repository/notification.rs +++ b/src/repository/notification.rs @@ -16,4 +16,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