Skip to content

Commit

Permalink
Re-enable ramp
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Jan 25, 2024
1 parent 6b52e1e commit bebd530
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 bebd530

Please sign in to comment.