(domainId: string, tid: ObjectId, uid: number)
| 742 | @param('tid', Types.ObjectId) |
| 743 | @param('uid', Types.PositiveInt) |
| 744 | async postRank(domainId: string, tid: ObjectId, uid: number) { |
| 745 | const tsdoc = await contest.getStatus(domainId, tid, uid); |
| 746 | if (!tsdoc) throw new ContestNotAttendedError(uid); |
| 747 | await contest.setStatus(domainId, tid, uid, { unrank: !tsdoc.unrank }); |
| 748 | this.back(); |
| 749 | } |
| 750 | |
| 751 | @param('tid', Types.ObjectId) |
| 752 | @param('uid', Types.PositiveInt) |