Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 5890a4a0 authored by lantry-glitch's avatar lantry-glitch
Browse files

Implement add function in Subscriber repository.

parent 19a2af3b
No related branches found
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;
}
}
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