fix(webdav): return only consumed backup metadata

This commit is contained in:
Tunglies
2026-10-08 01:57:25 +08:00
parent 0ef96959c2
commit 4c15f97869
3 changed files with 0 additions and 10 deletions
-6
View File
@@ -116,9 +116,6 @@ pub struct WebDavFile {
pub href: String,
#[specta(type = String)]
pub last_modified: chrono::DateTime<chrono::Utc>,
pub content_length: i64,
pub content_type: String,
pub tag: Option<String>,
}
impl From<reqwest_dav::list_cmd::ListFile> for WebDavFile {
@@ -126,9 +123,6 @@ impl From<reqwest_dav::list_cmd::ListFile> for WebDavFile {
Self {
href: file.href,
last_modified: file.last_modified,
content_length: file.content_length,
content_type: file.content_type,
tag: file.tag,
}
}
}
-3
View File
@@ -1054,9 +1054,6 @@ export type VergeEventPayloads = {
export type WebDavFile = {
href: string
last_modified: string
content_length: number
content_type: string
tag: string | null
}
export type YamlMapping = { [key in string]: JsonValue }
-1
View File
@@ -424,7 +424,6 @@ export async function listWebDavBackup() {
return (await commands.listWebdavBackup()).map((item) => ({
...item,
filename: item.href.split('/').pop() ?? '',
tag: item.tag,
}))
}