BLOG-105 Implement CRUD functionality for Labels #107
@ -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