mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: remote judge fix
This commit is contained in:
1 parent
773cc34b6e
commit
9a8557d215
4 files changed
+15
-15
No files matched your search
@@ -75,18 +75,20 @@ class RecordModel {
|
||||
source = `${pdoc.domainId}/${pdoc.docId}`;
|
||||
data = pdoc.data;
|
||||
if (typeof pdoc.config === 'string') throw new Error(pdoc.config);
|
||||
if (pdoc.config.type === 'remote_judge' && rdoc.contest.toHexString() !== '0'.repeat(24)) {
|
||||
return await task.add({
|
||||
...omit(rdoc, ['_id']),
|
||||
priority,
|
||||
type: 'remotejudge',
|
||||
subType: pdoc.config.subType,
|
||||
target: pdoc.config.target,
|
||||
rid,
|
||||
domainId,
|
||||
config,
|
||||
data,
|
||||
});
|
||||
if (pdoc.config.type === 'remote_judge') {
|
||||
if (rdoc.contest?.toHexString() !== '0'.repeat(24)) {
|
||||
return await task.add({
|
||||
...omit(rdoc, ['_id']),
|
||||
priority,
|
||||
type: 'remotejudge',
|
||||
subType: pdoc.config.subType,
|
||||
target: pdoc.config.target,
|
||||
rid,
|
||||
domainId,
|
||||
config,
|
||||
data,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
return await task.add({
|
||||
|
||||
Reference in new issue
Block a user