Fakultas Ilmu Komputer UI

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

Implement receive_notification function in Notification service.

parent c8408672
No related branches found
No related tags found
No related merge requests found
......@@ -90,4 +90,9 @@ impl NotificationService {
return thread::spawn(move || Self::unsubscribe_request(product_type_clone))
.join().unwrap();
}
pub fn receiver_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.
Finish editing this message first!
Please register or to comment