(domainId: string, psid: ObjectId)
| 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) |