Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 0730493d authored by Scallss's avatar Scallss
Browse files

Implement list_messages function in Notification service.

parent ad92bfdd
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment