Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
42
class
ManageHandler extends Handler {
43
async
prepare({ domainId }) {
44
this.checkPerm(PERM.PERM_EDIT_DOMAIN);
45
this.domain =
await
domain.get(domainId);
46
}
47
}
48
49
class
DomainEditHandler extends ManageHandler {
Callers
nothing calls this directly
Calls
2
checkPerm
Method · 0.80
get
Method · 0.45
Tested by
no test coverage detected