Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 93e1138a authored by rafliesa's avatar rafliesa
Browse files

Implement receive_notification function in Notification service.

parent 4424b6ec
Branches
No related tags found
No related merge requests found
......@@ -83,4 +83,8 @@ impl NotificationService{
return thread::spawn(move || Self::unsubscribe_request(product_type_clone)).join().unwrap();
}
pub fn receive_notification(payload: Notification) -> Result<Notification> {
let subscriber_result: Notification = NotificationRepository::add(payload);
return Ok(subscriber_result);
}
}
\ 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