Skip to content

Commit

Permalink
run archive_fitbit_heartrates after syncing files
Browse files Browse the repository at this point in the history
  • Loading branch information
ddboline committed Jan 28, 2024
1 parent e619ea6 commit 988b791
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion garmin_cli/src/garmin_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use tempdir::TempDir;
use time::Date;
use tokio::task::spawn_blocking;

use fitbit_lib::fitbit_archive::archive_fitbit_heartrates;
use garmin_lib::{date_time_wrapper::DateTimeWrapper, garmin_config::GarminConfig};
use garmin_models::{
garmin_correction_lap::{GarminCorrectionLap, GarminCorrectionMap},
Expand Down Expand Up @@ -252,7 +253,9 @@ impl GarminCli {
let gsync = gsync.clone();
async move { gsync.sync_dir(title, local_dir, s3_bucket, &pool).await }
});
try_join_all(futures).await
let mut results = try_join_all(futures).await?;
results.extend_from_slice(&archive_fitbit_heartrates(&self.config, &self.pool, false).await?);
Ok(results)
}

pub fn process_pattern<T, U>(config: &GarminConfig, patterns: T) -> GarminRequest
Expand Down

0 comments on commit 988b791

Please sign in to comment.