core: import: set tag

This commit is contained in:
undefined committed 2023-04-05 17:09:30 +08:00
1 parent 4de3390d49
commit cddc98ae4b
1 file changed
+1 -1
+1 -1
View File
@@ -438,7 +438,7 @@ export class ProblemModel {
const overrideContent = findOverrideContent(path.join(tmpdir, i));
const docId = await ProblemModel.add(
domainId, pid, pdoc.title, overrideContent || pdoc.content,
operator || pdoc.owner, pdoc.tag, pdoc.hidden,
operator || pdoc.owner, pdoc.tag || [], pdoc.hidden,
);
if (files.includes('testdata')) {
const datas = await fs.readdir(path.join(tmpdir, i, 'testdata'), { withFileTypes: true });