Move DELETE method to Resource framework

This commit is contained in:
Lennart
2024-06-30 19:44:13 +02:00
parent 8afcbccd6a
commit 6f4bc4ba7b
10 changed files with 62 additions and 79 deletions

View File

@@ -289,4 +289,13 @@ impl<C: CalendarStore + ?Sized> ResourceService for CalendarResource<C> {
.await?;
Ok(())
}
async fn delete_file(&self, use_trashbin: bool) -> Result<(), Self::Error> {
self.cal_store
.write()
.await
.delete_calendar(&self.principal, &self.calendar_id, use_trashbin)
.await?;
Ok(())
}
}