(note: Note)
| 123 | |
| 124 | export 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) => { |
nothing calls this directly
no outgoing calls
no test coverage detected