From b68e0432461a68579d6cbe9a674bf6e33a0dfc2f Mon Sep 17 00:00:00 2001 From: Christian Raphael Heryanto <christian.raphael@ui.ac.id> Date: Fri, 28 Mar 2025 16:03:42 +0800 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 6c6c14a..08418a1 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); + } } -- GitLab