BLOG-105 fix: remove unnecessary label retrieval before updating label
This commit is contained in:
parent
8f9a32948f
commit
234b337519
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user