diff --git a/src/main.rs b/src/main.rs index 188484e..b51b1fb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -145,30 +145,30 @@ fn notify_team_change(team: &State>>, token: String) -> Json { let current_team = team.read(); - for current_member in (*current_team.current).iter() { - if let Some(other_member) = t.current.iter().find(|m| m.name == current_member.name) - { - let changed_fields = current_member.differences(other_member); - if !changed_fields.is_empty() { - if let Some(ref sid) = current_member.slack_id { - if slack::send_slack_message( - sid, - &format!( - "The following fields have changed for you: {}", - changed_fields.join(", ") - ), - ) - .is_err() - { - log::error!( - "failed to send row change slack notification to {}", - current_member.name - ); - } - } - } - } - } + // for current_member in (*current_team.current).iter() { + // if let Some(other_member) = t.current.iter().find(|m| m.name == current_member.name) + // { + // let changed_fields = current_member.differences(other_member); + // if !changed_fields.is_empty() { + // if let Some(ref sid) = current_member.slack_id { + // if slack::send_slack_message( + // sid, + // &format!( + // "The following fields have changed for you: {}", + // changed_fields.join(", ") + // ), + // ) + // .is_err() + // { + // log::error!( + // "failed to send row change slack notification to {}", + // current_member.name + // ); + // } + // } + // } + // } + // } // for changed_member in team.read().changed_members(&t) { // if let Some(ref sid) = changed_member.slack_id {