MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / restoreFromTrash

Function restoreFromTrash

apps/desktop/src/main/vault.ts:3236–3238  ·  view source on GitHub ↗
(root: string, rel: string)

Source from the content-addressed store, hash-verified

3234}
3235
3236export function restoreFromTrash(root: string, rel: string): Promise<NoteMeta> {
3237 return moveBetweenFolders(root, rel, 'inbox')
3238}
3239
3240export function archiveNote(root: string, rel: string): Promise<NoteMeta> {
3241 return moveBetweenFolders(root, rel, 'archive')

Callers 3

vault.test.tsFile · 0.90
registerIpcFunction · 0.90
cmdRestoreFunction · 0.50

Calls 1

moveBetweenFoldersFunction · 0.70

Tested by

no test coverage detected