(id: string)
| 23 | } |
| 24 | |
| 25 | async getDoc(id: string): Promise<PersistedFullWorkflow> { |
| 26 | const ret = await this.documents.getDocument(id); |
| 27 | if (ret.success) { |
| 28 | return ret.data |
| 29 | } else { |
| 30 | throw new Error("Get Doc failed: " + ret.error); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | async createDoc(docMeta: PersistedFullWorkflow) { |
| 35 | const ret = await this.documents.createDocument(docMeta.id, docMeta); |
no test coverage detected