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