()
| 14 | } |
| 15 | |
| 16 | async getDocs(): Promise<PersistedFullWorkflow[]> { |
| 17 | const ret = await this.documents.getDocuments(); |
| 18 | if (ret.success) { |
| 19 | return ret.data |
| 20 | } else { |
| 21 | throw new Error("Get docs failed" + ret.error); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | async getDoc(id: string): Promise<PersistedFullWorkflow> { |
| 26 | const ret = await this.documents.getDocument(id); |
no test coverage detected