1
0
mirror of https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git synced 2024-12-13 18:52:00 +00:00

fix: waitForSubmission http status

This commit is contained in:
Baoshuo Ren 2023-03-21 19:24:47 +08:00
parent ce4fdc1523
commit c7c006bd3d
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -182,7 +182,7 @@ export default class Luogu {
count++;
try {
const result = await this.get(`/judge/result?id=${id}`);
const result = await this.get(`/judge/result?id=${id}`).ok((status) => true);
if (HTTP_ERROR_MAP[result.status]) {
await end({