From bba3981d12e91e99a1858d4c03ed9f4d89328070 Mon Sep 17 00:00:00 2001 From: lantry-glitch <allan.kwek.18@gmail.com> Date: Fri, 28 Mar 2025 15:54:33 +0700 Subject: [PATCH] Implement receive_notification function in Notification service. --- src/service/notification.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/service/notification.rs b/src/service/notification.rs index 6e1916c..f06db61 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -91,7 +91,12 @@ impl NotificationService { )) } } - + + pub fn receive_notification(payload: Notification) -> Result<Notification> { + let subscriber_result: Notification = NotificationRepository::add(payload); + return Ok(subscriber_result); + } + } -- GitLab