mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: homework: fix penaltyRules validate
This commit is contained in:
3 files changed
+13
-2
No files matched your search
@@ -145,6 +145,7 @@ export class ProblemModel {
|
||||
tag: string[] = [], meta: ProblemCreateOptions = {},
|
||||
) {
|
||||
const [doc] = await ProblemModel.getMulti(domainId, {})
|
||||
.withReadPreference('primary')
|
||||
.sort({ docId: -1 }).limit(1).project({ docId: 1 })
|
||||
.toArray();
|
||||
const result = await ProblemModel.addWithId(
|
||||
|
||||
Reference in new issue
Block a user