Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit bedac9b2 authored by noQils's avatar noQils
Browse files

Implement list_messages function in Notification service.

parent a65f2b1d
No related branches found
No related tags found
No related merge requests found
...@@ -94,5 +94,9 @@ impl NotificationService { ...@@ -94,5 +94,9 @@ impl NotificationService {
let subscriber_result: Notification = NotificationRepository::add(payload); let subscriber_result: Notification = NotificationRepository::add(payload);
return Ok(subscriber_result); return Ok(subscriber_result);
} }
pub fn list_messages() -> Result<Vec<String>> {
return Ok(NotificationRepository::list_all_as_string());
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment