Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 7e6ee766 authored by TheoKevH's avatar TheoKevH
Browse files

Implement add function in Subscriber repository

parent 69cde7d6
Branches
No related tags found
No related merge requests found
......@@ -12,4 +12,9 @@ lazy_static! {
pub struct 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.
Please register or to comment