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

Method get

packages/hydrooj/src/model/solution.ts:14–18  ·  view source on GitHub ↗
(domainId: string, psid: ObjectId)

Source from the content-addressed store, hash-verified

12 }
13
14 static async get(domainId: string, psid: ObjectId) {
15 const psdoc = await document.get(domainId, document.TYPE_PROBLEM_SOLUTION, psid);
16 if (!psdoc) throw new SolutionNotFoundError(domainId, psid);
17 return psdoc;
18 }
19
20 static getMany(domainId: string, query: any, sort: any, page: number, limit: number) {
21 return document.getMulti(domainId, document.TYPE_PROBLEM_SOLUTION, query)

Callers 1

voteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected