fix: allow nullable name fields in user and cipher interfaces for better flexibility

This commit is contained in:
shuaiplus
2026-02-11 21:38:54 +08:00
parent c445714fd5
commit c825280707
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ export async function handleCreateCipher(request: Request, env: Env, userId: str
userId: userId,
type: Number(cipherData.type) || 1,
folderId: cipherData.folderId || null,
name: cipherData.name,
name: cipherData.name || null,
notes: cipherData.notes || null,
favorite: cipherData.favorite || false,
login: cipherData.login || null,