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

Function upsertNote

app/src/sqlite/note.ts:125–127  ·  view source on GitHub ↗
(note: Note)

Source from the content-addressed store, hash-verified

123
124export const noteCollectionMethods = {
125 async upsertNote(note: Note) {
126 await this.bulkUpsertNotes([note])
127 },
128 async bulkUpsertNotes(notes: Note[]) {
129 const batches = chunk(notes.map(noteToDocType), 1000)
130 await tx(async (db) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected