(domainId: string, pid: number, name: string | string[], operator = 1)
| 324 | } |
| 325 | |
| 326 | static async delTestdata(domainId: string, pid: number, name: string | string[], operator = 1) { |
| 327 | const names = (name instanceof Array) ? name : [name]; |
| 328 | await Promise.all([ |
| 329 | storage.del(names.map((t) => `problem/${domainId}/${pid}/testdata/${t}`), operator), |
| 330 | ProblemModel.pull(domainId, pid, 'data', names), |
| 331 | ]); |
| 332 | await bus.emit('problem/delTestdata', domainId, pid, names); |
| 333 | } |
| 334 | |
| 335 | static async addAdditionalFile( |
| 336 | domainId: string, pid: number, name: string, |
no test coverage detected