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

Method postStar

packages/hydrooj/src/handler/problem.ts:456–459  ·  view source on GitHub ↗
(domainId: string, star: boolean)

Source from the content-addressed store, hash-verified

454
455 @param('star', Types.Boolean)
456 async postStar(domainId: string, star: boolean) {
457 await problem.setStar(domainId, this.pdoc.docId, this.user._id, star);
458 this.back({ star });
459 }
460}
461
462export class ProblemSubmitHandler extends ProblemDetailHandler {

Callers

nothing calls this directly

Calls 2

backMethod · 0.80
setStarMethod · 0.45

Tested by

no test coverage detected