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

Method prepare

packages/hydrooj/src/handler/domain.ts:43–46  ·  view source on GitHub ↗
({ domainId })

Source from the content-addressed store, hash-verified

41
42class ManageHandler extends Handler {
43 async prepare({ domainId }) {
44 this.checkPerm(PERM.PERM_EDIT_DOMAIN);
45 this.domain = await domain.get(domainId);
46 }
47}
48
49class DomainEditHandler extends ManageHandler {

Callers

nothing calls this directly

Calls 2

checkPermMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected