(collection: string, slug: string)
| 623 | } |
| 624 | |
| 625 | async getNotes(collection: string, slug: string): Promise<Note[]> { |
| 626 | const notes = (await this.notesApi!.getEntryNotes(collection, slug)).map(note => ({ |
| 627 | ...note, |
| 628 | entrySlug: slug, |
| 629 | })); |
| 630 | |
| 631 | try { |
| 632 | return await this.markOwnNotes(notes); |
| 633 | } catch (error) { |
| 634 | console.warn('Failed to resolve note ownership:', error); |
| 635 | return notes; |
| 636 | } |
| 637 | } |
| 638 | |
| 639 | async addNote( |
| 640 | collection: string, |
nothing calls this directly
no test coverage detected