Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 2b552974 authored by vissutagunawan's avatar vissutagunawan
Browse files

Implement add function in Subscriber repository.

parent 9f3ab038
No related branches found
No related tags found
No related merge requests found
...@@ -9,4 +9,9 @@ use lazy_static::lazy_static; ...@@ -9,4 +9,9 @@ use lazy_static::lazy_static;
pub struct NotificationRepository; pub struct NotificationRepository;
impl NotificationRepository {} impl NotificationRepository {
\ No newline at end of file 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.
Please register or to comment