MCPcopy
hub / github.com/streetwriters/notesnook / add

Method add

packages/core/src/api/vault.ts:181–184  ·  view source on GitHub ↗

* Locks (add to vault) a note

(noteId: string)

Source from the content-addressed store, hash-verified

179 * Locks (add to vault) a note
180 */
181 async add(noteId: string) {
182 await this.lockNote({ id: noteId }, await this.getVaultPassword());
183 await this.db.noteHistory.clearSessions(noteId);
184 }
185
186 /**
187 * Permanently unlocks (remove from vault) a note

Callers 15

onMouseOverFunction · 0.45
onMouseClickFunction · 0.45
mainFunction · 0.45
sync.test.jsFile · 0.45
migrations.tsFile · 0.45
vaultKeyFunction · 0.45
wrapTablesWithDivFunction · 0.45
preprocessHTMLFunction · 0.45
getMatchScoreFunction · 0.45
publishMethod · 0.45
changePasswordMethod · 0.45

Calls 3

lockNoteMethod · 0.95
getVaultPasswordMethod · 0.95
clearSessionsMethod · 0.45

Tested by 4

compareReminderFunction · 0.36
notebookTestFunction · 0.36
noteTestFunction · 0.36