Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 18c1595d authored by Andrew4Coding's avatar Andrew4Coding
Browse files

mplement list_messages function in Notification service

parent b9727243
No related branches found
No related tags found
No related merge requests found
...@@ -98,4 +98,8 @@ impl NotificationService { ...@@ -98,4 +98,8 @@ impl NotificationService {
let subscriber_result = NotificationRepository::add(payload); let subscriber_result = 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());
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment