Skip to content

Commit

Permalink
refactor(services): another one bites the dust
Browse files Browse the repository at this point in the history
It was the fitness module
  • Loading branch information
IgnisDa committed Aug 15, 2024
1 parent 99d6f09 commit 4426eba
Show file tree
Hide file tree
Showing 17 changed files with 984 additions and 896 deletions.
38 changes: 37 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ sea-query = "=0.31.0"
serde = { version = "=1.0.204", features = ["derive"] }
serde_json = "=1.0.120"
serde_with = { version = "=3.9.0", features = ["chrono_0_4"] }
slug = "=0.1.5"
strum = { version = "=0.26.2", features = ["derive"] }
# FIXME: Upgrade once https://github.com/seanmonstar/reqwest/pull/1620 is merged
reqwest = { git = "https://github.com/thomasqueirozb/reqwest", branch = "base_url", features = [
Expand Down
3 changes: 1 addition & 2 deletions apps/backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ chrono = { workspace = true }
chrono-tz = { workspace = true }
config = { path = "../../crates/config" }
convert_case = { workspace = true }
const-str = { workspace = true }
csv = "=1.3.0"
data-encoding = "=2.6.0"
dotenvy = "=0.15.7"
Expand Down Expand Up @@ -50,7 +49,7 @@ serde_json = { workspace = true }
serde_with = { workspace = true }
serde-xml-rs = "=0.6.0"
services = { path = "../../crates/services" }
slug = "=0.1.5"
slug = { workspace = true }
tokio = { workspace = true }
tower = { version = "=0.4.13", features = ["buffer"] }
tower-http = { version = "=0.5.2", features = ["catch-panic", "cors", "trace"] }
Expand Down
7 changes: 2 additions & 5 deletions apps/backend/src/app_background.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ use background::{ApplicationJob, CoreApplicationJob};
use chrono::DateTime;
use chrono_tz::Tz;
use models::CommitMediaInput;
use services::ExporterService;
use services::{ExerciseService, ExporterService};

use crate::{
fitness::resolver::ExerciseService, importer::ImporterService,
miscellaneous::MiscellaneousService,
};
use crate::{importer::ImporterService, miscellaneous::MiscellaneousService};

// Cron Jobs

Expand Down
5 changes: 2 additions & 3 deletions apps/backend/src/app_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ use openidconnect::{
reqwest::async_http_client,
ClientId, ClientSecret, IssuerUrl, RedirectUrl,
};
use resolvers::{ExporterMutation, ExporterQuery};
use resolvers::{ExerciseMutation, ExerciseQuery, ExporterMutation, ExporterQuery};
use sea_orm::DatabaseConnection;
use services::{ExporterService, FileStorageService};
use services::{ExerciseService, ExporterService, FileStorageService};
use utils::FRONTEND_OAUTH_ENDPOINT;

use crate::{
fitness::resolver::{ExerciseMutation, ExerciseQuery, ExerciseService},
importer::{ImporterMutation, ImporterQuery, ImporterService},
miscellaneous::{MiscellaneousMutation, MiscellaneousQuery, MiscellaneousService},
};
Expand Down
3 changes: 0 additions & 3 deletions apps/backend/src/fitness/mod.rs

This file was deleted.

Loading

0 comments on commit 4426eba

Please sign in to comment.