FileNode/set fails to delete files (fixes #2485)
This commit is contained in:
@@ -21,7 +21,9 @@ use jmap_proto::{
|
||||
};
|
||||
use jmap_tools::{JsonPointerItem, Key, Value};
|
||||
use store::{
|
||||
ValueKey, ahash::{AHashMap, AHashSet}, write::{AlignedBytes, Archive, BatchBuilder}
|
||||
ValueKey,
|
||||
ahash::{AHashMap, AHashSet},
|
||||
write::{AlignedBytes, Archive, BatchBuilder},
|
||||
};
|
||||
use trc::AddContext;
|
||||
use types::{
|
||||
@@ -307,7 +309,7 @@ impl FileNodeSet for Server {
|
||||
'destroy: for id in will_destroy {
|
||||
let document_id = id.document_id();
|
||||
|
||||
let Some(file_node) = cache.container_resource_path_by_id(document_id) else {
|
||||
let Some(file_node) = cache.any_resource_path_by_id(document_id) else {
|
||||
response.not_destroyed.append(id, SetError::not_found());
|
||||
continue 'destroy;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user