Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Oct 8, 2024
1 parent c696692 commit c3ff011
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
3 changes: 2 additions & 1 deletion cio/src/configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down
1 change: 0 additions & 1 deletion cio/src/shipments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;

Expand Down
5 changes: 1 addition & 4 deletions webhooky/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down
26 changes: 13 additions & 13 deletions webhooky/src/mailing_lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
// );
// }
}

Expand Down

0 comments on commit c3ff011

Please sign in to comment.