MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / edit

Method edit

packages/blog/index.ts:55–58  ·  view source on GitHub ↗
(did: ObjectId, title: string, content: string)

Source from the content-addressed store, hash-verified

53 }
54
55 static edit(did: ObjectId, title: string, content: string): Promise<BlogDoc> {
56 const payload = { title, content };
57 return DocumentModel.set('system', TYPE_BLOG, did, payload);
58 }
59
60 static inc(did: ObjectId, key: NumberKeys<BlogDoc>, value: number): Promise<BlogDoc | null> {
61 return DocumentModel.inc('system', TYPE_BLOG, did, key, value);

Callers 11

postUpdateMethod · 0.45
fromFileMethod · 0.45
addContestFileFunction · 0.45
runFunction · 0.45
runFunction · 0.45
runFunction · 0.45
runFunction · 0.45
addContestFileFunction · 0.45
runFunction · 0.45
runMethod · 0.45
syncMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected