From 5a53b5dd9621c0eb895b89290483b3064d184d40 Mon Sep 17 00:00:00 2001 From: Ida Made Revindra Dikta Mahendra <idamaderevindra05@gmail.com> Date: Fri, 28 Mar 2025 10:38:57 +0700 Subject: [PATCH] [CHORE]: 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 2eb9a7d..ca12a51 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 -- GitLab