caldav: refactor resource newtypes

This commit is contained in:
Lennart
2024-09-29 13:39:45 +02:00
parent 1b438ea98a
commit 7f164da438
7 changed files with 36 additions and 53 deletions

View File

@@ -126,7 +126,7 @@ pub async fn handle_calendar_query<C: CalendarStore + ?Sized>(
for event in events {
let path = format!("{}/{}", req.path(), event.get_uid());
responses.push(
EventFile { event }
EventFile::from(event)
.propfind(prefix, path, props.clone())
.await?,
);