Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Disabl ramp ensure
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Jan 11, 2024
1 parent cd64c3d commit 50dcb26
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cio/src/configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,17 +560,17 @@ impl UserConfig {
}?;
}

match ramp.ensure_user(db, company, &new_user, config).await {
Ok(ramp_id) => {
// Set the Ramp ID for the user.
new_user.ramp_id = ramp_id.to_string();
// Update the user in the database.
new_user = new_user.update(db).await?;
}
Err(e) => {
warn!("Failed to ensure ramp user `{}`: {}", new_user.id, e);
}
}
// match ramp.ensure_user(db, company, &new_user, config).await {
// Ok(ramp_id) => {
// // Set the Ramp ID for the user.
// new_user.ramp_id = ramp_id.to_string();
// // Update the user in the database.
// new_user = new_user.update(db).await?;
// }
// Err(e) => {
// warn!("Failed to ensure ramp user `{}`: {}", new_user.id, e);
// }
// }

// Get the Airtable information for the user.
match airtable_auth.ensure_user(db, company, &new_user, config).await {
Expand Down

0 comments on commit 50dcb26

Please sign in to comment.