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

Method setStar

packages/blog/index.ts:88–90  ·  view source on GitHub ↗
(did: ObjectId, uid: number, star: boolean)

Source from the content-addressed store, hash-verified

86 }
87
88 static setStar(did: ObjectId, uid: number, star: boolean) {
89 return DocumentModel.setStatus('system', TYPE_BLOG, did, uid, { star });
90 }
91
92 static getStatus(did: ObjectId, uid: number) {
93 return DocumentModel.getStatus('system', TYPE_BLOG, did, uid);

Callers 2

postStarMethod · 0.45
postUnstarMethod · 0.45

Calls 1

setStatusMethod · 0.80

Tested by

no test coverage detected