MCPcopy Create free account
hub / github.com/decaporg/decap-cms / findNote

Method findNote

packages/decap-cms-backend-gitlab/src/implementation.ts:667–674  ·  view source on GitHub ↗
(collection: string, slug: string, noteId: string)

Source from the content-addressed store, hash-verified

665 }
666
667 private async findNote(collection: string, slug: string, noteId: string) {
668 const notes = await this.notesApi!.getEntryNotes(collection, slug);
669 const note = notes.find(candidate => candidate.id === noteId);
670 if (!note) {
671 throw new Error(`Note with ID ${noteId} not found`);
672 }
673 return note;
674 }
675
676 async updateNote(
677 collection: string,

Callers 2

updateNoteMethod · 0.95
toggleNoteResolutionMethod · 0.95

Calls 2

findMethod · 0.80
getEntryNotesMethod · 0.45

Tested by

no test coverage detected