Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit b68e0432 authored by Christian Raphael Heryanto's avatar Christian Raphael Heryanto
Browse files

Implement receive_notification function in Notification service.

parent 8a21f476
No related branches found
No related tags found
No related merge requests found
...@@ -93,4 +93,9 @@ impl NotificationService { ...@@ -93,4 +93,9 @@ impl NotificationService {
.join() .join()
.unwrap(); .unwrap();
} }
pub fn receive_notification(payload: Notification) -> Result<Notificition> {
let subscriber_result: Notification = NotificationRepository::add(payload);
return Ok(subscriber_result);
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment