BLOG-105 fix: remove unnecessary label retrieval before updating label
All checks were successful
PR Title Check / pr-title-check (pull_request) Successful in 13s
Frontend CI / build (push) Successful in 1m9s

This commit is contained in:
SquidSpirit 2025-08-02 10:44:35 +08:00
parent 8f9a32948f
commit 234b337519

View File

@ -25,7 +25,6 @@ impl UpdateLabelUseCaseImpl {
#[async_trait]
impl UpdateLabelUseCase for UpdateLabelUseCaseImpl {
async fn execute(&self, label: Label) -> Result<(), PostError> {
self.label_repository.get_label_by_id(label.id).await?;
self.label_repository.update_label(label).await
}
}