core: fix fileio

This commit is contained in:
undefined committed 2023-03-28 15:19:44 +08:00
1 parent 1424232a80
commit f72b221497
4 files changed
+18 -3

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ export default class RecordModel {
source = `${pdoc.domainId}/${pdoc.docId}`;
data = pdoc.data;
if (typeof pdoc.config === 'string') throw new Error(pdoc.config);
config.type = pdoc.config.type as any;
config.type = pdoc.config.type === 'fileio' ? 'default' : pdoc.config.type as any;
if (pdoc.config.type === 'remote_judge' && rdoc.contest?.toHexString() !== '0'.repeat(24)) {
return await task.addMany(rids.map((rid) => ({
...(pdoc.config as any),