mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-09 11:52:08 +08:00
fix(webdav): return only consumed backup metadata
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -424,7 +424,6 @@ export async function listWebDavBackup() {
|
||||
return (await commands.listWebdavBackup()).map((item) => ({
|
||||
...item,
|
||||
filename: item.href.split('/').pop() ?? '',
|
||||
tag: item.tag,
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user