From ebae58454e9048f555625d5ed588c9f292af6cdb Mon Sep 17 00:00:00 2001 From: noQils <daffaaqilmahmud@gmail.com> Date: Thu, 27 Mar 2025 16:15:23 +0700 Subject: [PATCH] Implement receive_notification function in Notification service. --- src/service/notification.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/service/notification.rs b/src/service/notification.rs index c8f3073..a579302 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); + } + } -- GitLab