* Locks (add to vault) a note
(noteId: string)
| 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 |