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