(domainId: string, psids: ObjectId[], uid: number)
| 84 | } |
| 85 | |
| 86 | static async getListStatus(domainId: string, psids: ObjectId[], uid: number) { |
| 87 | const result: Record<string, { docId: ObjectId, vote: number }> = {}; |
| 88 | const res = await document.getMultiStatus( |
| 89 | domainId, document.TYPE_PROBLEM_SOLUTION, { uid, docId: { $in: psids } }, |
| 90 | ).project<any>({ docId: 1, vote: 1 }).toArray(); |
| 91 | for (const i of res) result[i.docId] = i; |
| 92 | return result; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | bus.on('problem/delete', async (domainId, docId) => { |
nothing calls this directly
no test coverage detected