Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 71977503 authored by DawnFall19's avatar DawnFall19
Browse files

Implement list_messages function in Notification service.

parent 2fb8f9b6
No related branches found
No related tags found
No related merge requests found
......@@ -95,4 +95,8 @@ impl NotificationService {
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());
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment