fix(remote_judger): status reporting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-03 17:04:22 +08:00
parent da02425215
commit 5531233763
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 3 additions and 3 deletions

View File

@ -237,7 +237,7 @@ export default class CodeforcesProvider implements IBasicProvider {
end
) {
if (!(await this.ensureLogin())) {
end({
await end({
error: true,
status: 'Judgment Failed',
message: 'Login failed',

View File

@ -208,7 +208,7 @@ export default class LuoguProvider implements IBasicProvider {
end
) {
if (!(await this.ensureLogin())) {
end({
await end({
error: true,
status: 'Judgment Failed',
message: 'Login failed',
@ -218,7 +218,7 @@ export default class LuoguProvider implements IBasicProvider {
}
if (code.length < 10) {
end({
await end({
error: true,
status: 'Compile Error',
message: 'Code too short',