refactor(application): strip comments, DRY ownership check + parse_content_type
This commit is contained in:
@@ -3,9 +3,6 @@ use domain::DomainResult;
|
||||
use super::commands::UpdateSettingsCommand;
|
||||
use super::deps::AdminDeps;
|
||||
|
||||
/// Update one or more admin settings.
|
||||
///
|
||||
/// Iterates key/value pairs and upserts each one.
|
||||
pub async fn execute(deps: &AdminDeps, cmd: UpdateSettingsCommand) -> DomainResult<()> {
|
||||
for (key, value) in &cmd.settings {
|
||||
deps.settings_repo.set(key, value).await?;
|
||||
|
||||
Reference in New Issue
Block a user