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 ba9710cdf0
commit 9edaa647c4
4 changed files with 92 additions and 4 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ export async function handleGetCiphers(request: Request, env: Env, userId: strin
: ciphers.filter(c => !c.deletedAt);
}
const attachmentsByCipher = await storage.getAttachmentsByCipherIds(filteredCiphers.map(c => c.id));
const attachmentsByCipher = await storage.getAttachmentsByUserId(userId);
// Get attachments for all ciphers
const cipherResponses = [];