diff --git a/src/service/notification.rs b/src/service/notification.rs index 2eb9a7d7208553f372ae4ba4bb8c81c921904d5c..ca12a51949a28d8cfd2dca79b3efafac312065f6 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -91,4 +91,9 @@ impl NotificationService { )) } } + + 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