Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 540cc291 authored by Ida Made Revindra Dikta Mahendra's avatar Ida Made Revindra Dikta Mahendra
Browse files

[CHORE]: Implement add function in Subscriber repository

parent 1cf4e6cd
No related branches found
No related tags found
No related merge requests found
...@@ -12,4 +12,9 @@ lazy_static! { ...@@ -12,4 +12,9 @@ lazy_static! {
pub struct NotificationRepository; pub struct NotificationRepository;
impl NotificationRepository { impl NotificationRepository {
pub fn add(notification: Notification) -> Notification {
NOTIFICATIONS.write().unwrap()
.push(notification.clone());
return notification;
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment