fix: restore missing match arms in trash_service restore_item

The translation commit accidentally removed the match statement and
opening arms (match item_result, Ok(Some(item)), match item.item_type)
while keeping the body, causing a brace mismatch compilation error.
This commit is contained in:
Dionisio
2026-02-12 11:26:23 +01:00
parent 3c03caaf60
commit 59af22390d
+10
View File
@@ -304,6 +304,16 @@ impl TrashUseCase for TrashService {
};
// Get the trash item
info!("Retrieving trash item from repository: ID={}", trash_id);
let item_result = self.trash_repository.get_trash_item(&trash_uuid, &user_uuid).await;
match item_result {
Ok(Some(item)) => {
info!("Found item in trash: ID={}, Type={:?}, OriginalID={}",
trash_id, item.item_type(), item.original_id());
// Restore based on type
match item.item_type() {
TrashedItemType::File => {
// Restore the file to its original location
let file_id = item.original_id().to_string();