(collection: string, slug: string, noteId: string)
| 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, |
no test coverage detected