Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 02c744ce authored by dzak27567's avatar dzak27567
Browse files

Implement add function in Subscriber repository.

parent bf3a6bd4
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;
}
}
\ 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