JMAP: Fix ContactCard/CalendarEvent deletion (fixes #2308)
This commit is contained in:
@@ -430,7 +430,7 @@ impl CalendarEventSet for Server {
|
||||
'destroy: for id in will_destroy {
|
||||
let document_id = id.document_id();
|
||||
|
||||
if !cache.has_container_id(&document_id) {
|
||||
if !cache.has_item_id(&document_id) {
|
||||
response.not_destroyed.append(id, SetError::not_found());
|
||||
continue;
|
||||
} else if id.is_synthetic() {
|
||||
|
||||
@@ -275,7 +275,7 @@ impl ContactCardSet for Server {
|
||||
'destroy: for id in will_destroy {
|
||||
let document_id = id.document_id();
|
||||
|
||||
if !cache.has_container_id(&document_id) {
|
||||
if !cache.has_item_id(&document_id) {
|
||||
response.not_destroyed.append(id, SetError::not_found());
|
||||
continue;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user