mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 08:12:24 +00:00
dav: update get_members
This commit is contained in:
@@ -41,11 +41,7 @@ pub trait ResourceService: Sized {
|
||||
|
||||
async fn get_file(&self) -> Result<Self::File>;
|
||||
|
||||
async fn get_members(
|
||||
&self,
|
||||
auth_info: AuthInfo,
|
||||
path_components: Self::PathComponents,
|
||||
) -> Result<Vec<Self::MemberType>>;
|
||||
async fn get_members(&self, auth_info: AuthInfo) -> Result<Vec<Self::MemberType>>;
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
|
||||
@@ -94,10 +94,7 @@ pub async fn handle_propfind<
|
||||
let mut member_responses = Vec::new();
|
||||
|
||||
if depth != Depth::Zero {
|
||||
for member in resource_service
|
||||
.get_members(auth_info, path_components)
|
||||
.await?
|
||||
{
|
||||
for member in resource_service.get_members(auth_info).await? {
|
||||
member_responses.push(member.propfind(props.clone()).await?);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user