mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: remove undocumented domain.union feature
This commit is contained in:
1 parent
f93108f160
commit
efb8adfe6d
7 files changed
+12
-36
No files matched your search
@@ -152,9 +152,8 @@ export class ProblemModel {
|
||||
page: number, pageSize: number,
|
||||
projection = ProblemModel.PROJECTION_LIST, uid?: number,
|
||||
): Promise<[ProblemDoc[], number, number]> {
|
||||
const union = await DomainModel.getUnion(domainId);
|
||||
const domainIds = [domainId];
|
||||
if (union?.problem) domainIds.push(...union.union);
|
||||
const union = await DomainModel.get(domainId);
|
||||
const domainIds = [domainId, ...(union.union || [])];
|
||||
let count = 0;
|
||||
const pdocs = [];
|
||||
for (const id of domainIds) {
|
||||
|
||||
Reference in new issue
Block a user