diff --git a/src/helpers/notifications_helper.rs b/src/helpers/notifications_helper.rs index bc7c52d..af235e0 100644 --- a/src/helpers/notifications_helper.rs +++ b/src/helpers/notifications_helper.rs @@ -12,20 +12,7 @@ use crate::helpers::database; /// Delete notifications pub fn delete(notification: &PartialNotification) -> ResultBoxError { - - // Check if we have to delete a specific notification or a group of similar notifications - let conditions = match notification.id { - Some(id) => { - let mut map = HashMap::new(); - map.insert("id".to_string(), mysql::Value::from(id)); - map - } - - // Delete similar notifications - None => { - notif_to_db(notification, false) - } - }; + let conditions = notif_to_db(notification, false); // Delete the notifications