diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index 6e96272..44a7f8b 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -9,14 +9,7 @@ name: rust-clippy analyze -on: - push: - branches: [ "main" ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ "main" ] - schedule: - - cron: '15 3 * * 6' +on: [push, pull_request] jobs: rust-clippy-analyze: diff --git a/src/api/handlers/asset/rename_asset_api_handler.rs b/src/api/handlers/asset/rename_asset_api_handler.rs index d279a04..e627051 100644 --- a/src/api/handlers/asset/rename_asset_api_handler.rs +++ b/src/api/handlers/asset/rename_asset_api_handler.rs @@ -36,7 +36,7 @@ pub async fn rename_asset_api_handler( return Err(Error::BadRequest(error_response)); } - + let asset_model = state.asset_service .find_by_id(&state.db, &asset_id) .await?;