MCPcopy Create free account
hub / github.com/6174/comflowyspace / updateDoc

Method updateDoc

packages/common/storage/document-database.ts:41–46  ·  view source on GitHub ↗
(docMeta: PersistedFullWorkflow)

Source from the content-addressed store, hash-verified

39 }
40
41 async updateDoc(docMeta: PersistedFullWorkflow) {
42 const ret = await this.documents.updateDocument(docMeta.id, docMeta);
43 if (!ret.success) {
44 throw new Error("Update failed" + ret.error);
45 }
46 }
47
48 async deleteDocSoft(docId: string) {
49 const ret = await this.documents.updateDocument(docId, {

Callers 3

JSONDBClass · 0.45
serveFunction · 0.45

Calls 1

updateDocumentMethod · 0.80

Tested by

no test coverage detected