BLOG-105 Implement CRUD functionality for Labels #107

Merged
squid merged 3 commits from BLOG-105_lable_create_and_update_routes into main 2025-08-02 10:46:00 +08:00
Showing only changes of commit 234b337519 - Show all commits

View File

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