MCPcopy Index your code
hub / github.com/hydro-dev/Hydro / BlogHandler

Class BlogHandler

packages/blog/index.ts:103–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101global.Hydro.model.blog = BlogModel;
102
103class BlogHandler extends Handler {
104 ddoc?: BlogDoc;
105
106 @param('did', Types.ObjectId, true)
107 async _prepare(domainId: string, did: ObjectId) {
108 if (did) {
109 this.ddoc = await BlogModel.get(did);
110 if (!this.ddoc) throw new DiscussionNotFoundError(domainId, did);
111 }
112 }
113}
114
115class BlogUserHandler extends BlogHandler {
116 @param('uid', Types.Int)

Callers

nothing calls this directly

Calls 1

paramFunction · 0.85

Tested by

no test coverage detected