diff --git a/src/service/notification.rs b/src/service/notification.rs index a579302fd47dc4e5d4f0b973a97d7f999360ca47..28e4398393c3d944c92a0f8131a211768a50529c 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -94,5 +94,9 @@ impl NotificationService { let subscriber_result: Notification = NotificationRepository::add(payload); return Ok(subscriber_result); } - + + pub fn list_messages() -> Result<Vec<String>> { + return Ok(NotificationRepository::list_all_as_string()); + } + }