diff --git a/cio/src/configs.rs b/cio/src/configs.rs index 94a31946d..df2764aa8 100644 --- a/cio/src/configs.rs +++ b/cio/src/configs.rs @@ -449,7 +449,8 @@ impl UserConfig { self.update_from_gusto(gusto_user); } else if let Some(gusto_user) = gusto_users.get(&self.recovery_email) { self.update_from_gusto(gusto_user); - } else { } + } else { + } // Expand the user. self.expand(db, company).await?; diff --git a/cio/src/shipments.rs b/cio/src/shipments.rs index 149e5d034..f817a2300 100644 --- a/cio/src/shipments.rs +++ b/cio/src/shipments.rs @@ -1545,7 +1545,6 @@ pub async fn refresh_outbound_shipments(db: &Database, company: &Company) -> Res // we do not. let shipments = OutboundShipments::get_from_db(db, company.id).await?; for mut s in shipments { - // Update the shipment from shippo, this will only apply if the provider is set as "Shippo". s.create_or_get_shippo_shipment(db).await?; diff --git a/webhooky/src/handlers.rs b/webhooky/src/handlers.rs index ebe1fc5ff..90e01c538 100644 --- a/webhooky/src/handlers.rs +++ b/webhooky/src/handlers.rs @@ -32,10 +32,7 @@ use std::{collections::HashMap, ffi::OsStr, str::FromStr}; use crate::{ context::ServerContext, handlers_github::RFDUpdater, - server::{ - ApplicationFileUploadData, CounterResponse, GitHubRateLimit, RFDPathParams, - ShippoTrackingUpdateEvent, - }, + server::{ApplicationFileUploadData, CounterResponse, GitHubRateLimit, RFDPathParams, ShippoTrackingUpdateEvent}, slack_commands::SlackCommand, }; diff --git a/webhooky/src/mailing_lists.rs b/webhooky/src/mailing_lists.rs index 9f38f6464..c570bc0ce 100644 --- a/webhooky/src/mailing_lists.rs +++ b/webhooky/src/mailing_lists.rs @@ -76,21 +76,21 @@ pub async fn sync_pending_wait_list_subscribers(db: &Database) -> Result<()> { // let existing = RackLineSubscriber::get_from_db(db, subscriber.email.clone()).await; // if existing.is_none() { - log::info!("Mailerlite subscriber {} needs to be added to wait list", subscriber.id); - let new_subscriber: NewRackLineSubscriber = subscriber.clone().into(); - let _ = new_subscriber.upsert(db).await.map_err(|err| { - log::error!( - "Failed to write wait list subscriber {} due to {:?}", - subscriber.id, - err - ); + log::info!("Mailerlite subscriber {} needs to be added to wait list", subscriber.id); + let new_subscriber: NewRackLineSubscriber = subscriber.clone().into(); + let _ = new_subscriber.upsert(db).await.map_err(|err| { + log::error!( + "Failed to write wait list subscriber {} due to {:?}", + subscriber.id, err - })?; + ); + err + })?; // } else { - // log::info!( - // "Mailerlite subscriber {} already exists in wait list database", - // subscriber.id - // ); + // log::info!( + // "Mailerlite subscriber {} already exists in wait list database", + // subscriber.id + // ); // } }