diff --git a/src/service/notification.rs b/src/service/notification.rs index 2d910efc6c5337ba45931d079bad82b9c1bc7441..15eddc3eb08285b99a55c43c81fe5311a6968fe4 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -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