upgrade to cordis v3 (#733)

Co-authored-by: panda <panda_dtdyy@outlook.com>
This commit is contained in:
undefinedandpanda authored and GitHub committed 2024-03-07 01:32:58 +08:00
1 parent 498cd57016
commit a56b1650be
33 files changed
+301 -262

No files matched your search

+3 -1
View File
@@ -79,7 +79,9 @@ const session = {
export async function postInit(ctx) {
if (SystemModel.get('hydrojudge.disable')) return;
ctx.check.addChecker('Judge', (_ctx, log, warn, error) => versionCheck(warn, error));
ctx.inject(['check'], (c) => {
c.check.addChecker('Judge', (_ctx, log, warn, error) => versionCheck(warn, error));
});
await fs.ensureDir(getConfig('tmp_dir'));
const handle = async (t) => {
const rdoc = await RecordModel.get(t.domainId, t.rid);