diff --git a/src/service/notification.rs b/src/service/notification.rs index c8f3073ed80038f84b216892ea9ae4d1f3bf94d7..a579302fd47dc4e5d4f0b973a97d7f999360ca47 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -90,4 +90,9 @@ impl NotificationService { .join().unwrap(); } + pub fn receive_notification(payload: Notification) -> Result<Notification> { + let subscriber_result: Notification = NotificationRepository::add(payload); + return Ok(subscriber_result); + } + }