Skip to content

Commit

Permalink
Disable entire ensure call
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Sep 24, 2024
1 parent 76359f6 commit 0c8838b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions cio/src/configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,18 +547,18 @@ impl UserConfig {
}
}

// Add the user to their GitHub teams and the org.
if !new_user.github.is_empty() {
// Add them to the org and any teams they need to be added to.
// We don't return an id here.
match github.ensure_user(db, company, &new_user, config).await {
Ok(id) => Ok(id),
Err(err) => {
warn!("Failed to ensure GitHub user `{}`: {}", new_user.id, err);
Err(err)
}
}?;
}
// // Add the user to their GitHub teams and the org.
// if !new_user.github.is_empty() {
// // Add them to the org and any teams they need to be added to.
// // We don't return an id here.
// match github.ensure_user(db, company, &new_user, config).await {
// Ok(id) => Ok(id),
// Err(err) => {
// warn!("Failed to ensure GitHub user `{}`: {}", new_user.id, err);
// Err(err)
// }
// }?;
// }

match ramp.ensure_user(db, company, &new_user, config).await {
Ok(ramp_id) => {
Expand Down

0 comments on commit 0c8838b

Please sign in to comment.