diff --git a/src/service/notification.rs b/src/service/notification.rs index 2e42203e4397aaf1313f00144c422747116b1375..8f3a74b9263e9ed8b84757ef9880d5fdcce2b0f1 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -97,4 +97,8 @@ impl NotificationService { let subcriber_result: Notification = NotificationRepository::add(payload); return Ok(subcriber_result); } + + pub fn list_messages() -> Result<Vec<String>> { + return Ok(NotificationRepository::list_all_as_string()); + } } \ No newline at end of file