Skip to content

Commit

Permalink
fix(backend): correct casing for configuration params
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Aug 16, 2023
1 parent 71627f3 commit 93176ed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/backend/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ pub struct MoviesTmdbConfig {
pub locale: String,
}

impl IsFeatureEnabled for MovieConfig {}

#[derive(Debug, Serialize, Deserialize, Clone, Config)]
pub struct MovieConfig {
/// Settings related to TMDB (movies).
Expand All @@ -150,20 +152,21 @@ pub struct MovieConfig {
}

#[derive(Debug, Serialize, Deserialize, Clone, Config)]
#[config(rename_all = "snake_case", env_prefix = "MUSIC_BRAINZ_")]
#[config(rename_all = "snake_case", env_prefix = "MUSIC_MUSIC_BRAINZ_")]
pub struct MusicBrainzConfig {
/// Used for changing the user agent if your requests are being rate limited.
pub user_agent: Option<String>,
}

#[derive(Debug, Serialize, Deserialize, Clone, Config)]
#[config(rename_all = "snake_case")]
pub struct MusicConfig {
/// Settings related to Music Brainz.
#[setting(nested)]
pub music_brainz: MusicBrainzConfig,
}

impl IsFeatureEnabled for MovieConfig {}
impl IsFeatureEnabled for MusicConfig {}

#[derive(Debug, Serialize, Deserialize, Clone, Config)]
#[config(rename_all = "snake_case", env_prefix = "MANGA_ANILIST_")]
Expand Down

0 comments on commit 93176ed

Please sign in to comment.