Added config support
This commit is contained in:
@@ -301,7 +301,7 @@ pub async fn enrich_artist(
|
||||
// Fetch release groups and filter by allowed secondary types
|
||||
let all_release_groups = state.search.get_release_groups(&mbid).await
|
||||
.map_err(|e| ApiError::Internal(e.to_string()))?;
|
||||
let allowed = &state.config.allowed_secondary_types;
|
||||
let allowed = state.config.read().await.allowed_secondary_types.clone();
|
||||
let release_groups: Vec<_> = all_release_groups
|
||||
.into_iter()
|
||||
.filter(|rg| {
|
||||
|
||||
Reference in New Issue
Block a user