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

Method push

packages/hydrooj/src/model/problem.ts:266–268  ·  view source on GitHub ↗
(domainId: string, _id: number, key: ArrayKeys<ProblemDoc>, value: ProblemDoc[T][0])

Source from the content-addressed store, hash-verified

264 }
265
266 static push<T extends ArrayKeys<ProblemDoc>>(domainId: string, _id: number, key: ArrayKeys<ProblemDoc>, value: ProblemDoc[T][0]) {
267 return document.push(domainId, document.TYPE_PROBLEM, _id, key, value);
268 }
269
270 static pull<T extends ArrayKeys<ProblemDoc>>(domainId: string, pid: number, key: ArrayKeys<ProblemDoc>, values: ProblemDoc[T][0][]) {
271 return document.deleteSub(domainId, document.TYPE_PROBLEM, pid, key, values);

Callers 15

loader.tsFile · 0.45
requestConfigMethod · 0.45
upgrade.tsFile · 0.45
calcLevelFunction · 0.45
_addressFunction · 0.45
_userFunction · 0.45
runFunction · 0.45
registerFunction · 0.45
registerFunction · 0.45
registerFunction · 0.45
locateFileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected