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

Method getByUser

packages/hydrooj/src/model/solution.ts:49–54  ·  view source on GitHub ↗
(domainId: string, uid: number)

Source from the content-addressed store, hash-verified

47 }
48
49 static getByUser(domainId: string, uid: number) {
50 return document.getMulti(
51 domainId, document.TYPE_PROBLEM_SOLUTION,
52 { parentType: document.TYPE_PROBLEM, owner: uid },
53 ).sort({ _id: -1 });
54 }
55
56 static reply(domainId: string, psid: ObjectId, owner: number, content: string) {
57 return document.push(domainId, document.TYPE_PROBLEM_SOLUTION, psid, 'reply', content, owner);

Callers

nothing calls this directly

Calls 1

getMultiMethod · 0.45

Tested by

no test coverage detected