()
| 109 | } |
| 110 | |
| 111 | async getDocs(): Promise<SavedDocGroupByNamespace[]> { |
| 112 | const ns = await this.getNamespaces(); |
| 113 | |
| 114 | return ns.map((n) => { |
| 115 | return { |
| 116 | namespace: n, |
| 117 | docs: this.cacheDocs[n.id] ?? [], |
| 118 | }; |
| 119 | }); |
| 120 | } |
| 121 | |
| 122 | async updateDoc(id: string, data: SavedDocInput): Promise<SavedDocData> { |
| 123 | await this.getNamespaces(); |
no test coverage detected