From 4c15f97869a853a8d369efd108d18821181856a9 Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Thu, 8 Oct 2026 01:51:53 +0800 Subject: [PATCH] fix(webdav): return only consumed backup metadata --- src-tauri/src/ipc.rs | 6 ------ src/services/bindings.ts | 3 --- src/services/cmds.ts | 1 - 3 files changed, 10 deletions(-) diff --git a/src-tauri/src/ipc.rs b/src-tauri/src/ipc.rs index 19bf03264..8f456b06b 100644 --- a/src-tauri/src/ipc.rs +++ b/src-tauri/src/ipc.rs @@ -116,9 +116,6 @@ pub struct WebDavFile { pub href: String, #[specta(type = String)] pub last_modified: chrono::DateTime, - pub content_length: i64, - pub content_type: String, - pub tag: Option, } impl From for WebDavFile { @@ -126,9 +123,6 @@ impl From for WebDavFile { Self { href: file.href, last_modified: file.last_modified, - content_length: file.content_length, - content_type: file.content_type, - tag: file.tag, } } } diff --git a/src/services/bindings.ts b/src/services/bindings.ts index f6c80c606..25dd62d35 100644 --- a/src/services/bindings.ts +++ b/src/services/bindings.ts @@ -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 } diff --git a/src/services/cmds.ts b/src/services/cmds.ts index df37644ab..30530e851 100644 --- a/src/services/cmds.ts +++ b/src/services/cmds.ts @@ -424,7 +424,6 @@ export async function listWebDavBackup() { return (await commands.listWebdavBackup()).map((item) => ({ ...item, filename: item.href.split('/').pop() ?? '', - tag: item.tag, })) }