From 234b337519d9b622499c5f5e32313f0bf60ba731 Mon Sep 17 00:00:00 2001 From: SquidSpirit Date: Sat, 2 Aug 2025 10:44:35 +0800 Subject: [PATCH] BLOG-105 fix: remove unnecessary label retrieval before updating label --- .../post/src/application/use_case/update_label_use_case.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/feature/post/src/application/use_case/update_label_use_case.rs b/backend/feature/post/src/application/use_case/update_label_use_case.rs index ae88967..b2678aa 100644 --- a/backend/feature/post/src/application/use_case/update_label_use_case.rs +++ b/backend/feature/post/src/application/use_case/update_label_use_case.rs @@ -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 } }