MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / hasRemoteNote

Function hasRemoteNote

app/src/sqlite/note.ts:463–470  ·  view source on GitHub ↗
(remoteNoteId: RemoteNoteId)

Source from the content-addressed store, hash-verified

461 })
462 },
463 async hasRemoteNote(remoteNoteId: RemoteNoteId) {
464 const r = await ky
465 .selectFrom('remoteNote')
466 .where('remoteId', '=', toLDbId(remoteNoteId))
467 .select(ky.fn.count<SqliteCount>('remoteId').as('count'))
468 .executeTakeFirstOrThrow()
469 return r.count >= 1
470 },
471}
472
473async function remotifyNote<T extends CreateRemoteNote | EditRemoteNote>(

Callers 2

DownloadTemplateDefaultFunction · 0.85
DownloadNoteDefaultFunction · 0.85

Calls 1

toLDbIdFunction · 0.90

Tested by

no test coverage detected