diff --git a/src/service/notification.rs b/src/service/notification.rs index f06db617030a6a9d1fee6b70e759119ec7a5b167..4ec10a1d49d552c07392794de751fcbbfa94185d 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -91,11 +91,16 @@ impl NotificationService { )) } } - + pub fn receive_notification(payload: Notification) -> Result<Notification> { 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()); + } + }