feat(storage): add method to retrieve attachments by user ID for improved data handling

This commit is contained in:
shuaiplus
2026-02-19 02:27:56 +08:00
parent 081dc64093
commit f63b5d6cf4
4 changed files with 92 additions and 4 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ export async function handleSync(request: Request, env: Env, userId: string): Pr
const ciphers = await storage.getAllCiphers(userId);
const folders = await storage.getAllFolders(userId);
const attachmentsByCipher = await storage.getAttachmentsByCipherIds(ciphers.map(c => c.id));
const attachmentsByCipher = await storage.getAttachmentsByUserId(userId);
// Build profile response
const profile: ProfileResponse = {