From bebd530f6e1f79918ef56e409bd70540efe5850f Mon Sep 17 00:00:00 2001 From: augustuswm Date: Thu, 25 Jan 2024 14:11:08 -0600 Subject: [PATCH] Re-enable ramp --- cio/src/configs.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/cio/src/configs.rs b/cio/src/configs.rs index f6e1c3c55..03f9c4418 100644 --- a/cio/src/configs.rs +++ b/cio/src/configs.rs @@ -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 {