fix: ensure attachment size is formatted as string for compatibility with Bitwarden clients

This commit is contained in:
shuaiplus committed 2026-02-23 14:07:11 +08:00
1 parent cd7b5a361c
commit 874d31e86b
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -198,7 +198,7 @@ export async function handleGetAttachment(
url: downloadUrl,
fileName: attachment.fileName,
key: attachment.key,
size: Number(attachment.size) || 0,
size: String(Number(attachment.size) || 0),
sizeName: attachment.sizeName,
});
}