vjudge: update codeforces handle

This commit is contained in:
undefined committed 2022-02-14 00:27:41 +08:00
1 parent 9a8557d215
commit 4e7c3077f9
3 files changed
+24 -8

No files matched your search

+2 -1
View File
@@ -23,7 +23,7 @@ class Service {
this.api = new Provider(account, async (data) => {
await coll.updateOne({ _id: account._id }, { $set: data });
});
this.main();
this.main().catch((e) => logger.error(`Error occured in ${account.type}/${account.handle}`, e));
}
async judge(task) {
@@ -36,6 +36,7 @@ class Service {
await next({ status: STATUS.STATUS_JUDGING, message: `ID = ${rid}` });
await this.api.waitForSubmission(rid, next, end);
} catch (e) {
if (process.env.DEV) logger.error(e);
end({ status: STATUS.STATUS_SYSTEM_ERROR, message: e.message });
}
}