From a453c2fe2ce02887ad89eac724fb7e909b6f8c32 Mon Sep 17 00:00:00 2001 From: vissutagunawan <vglim3653@gmail.com> Date: Thu, 27 Mar 2025 10:19:44 +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 2dbbdb4..fe2c5ed 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -86,4 +86,9 @@ use rocket::http::Status; .join() .unwrap(); } + + pub fn recieve_notification(payload: Notification) -> Result<Notification> { + let subscriber_result = NotificationRepository::add(payload.clone()); + return Ok(subscriber_result); + } } \ No newline at end of file -- GitLab