mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ci fix
This commit is contained in:
4 files changed
+5
-3
No files matched your search
@@ -50,6 +50,7 @@ jobs:
|
|||||||
yarn set version stable
|
yarn set version stable
|
||||||
yarn
|
yarn
|
||||||
yarn dedupe
|
yarn dedupe
|
||||||
|
node build/prepare.js
|
||||||
env:
|
env:
|
||||||
LICENSE_KEY: ${{ secrets.MAXMIND_KEY }}
|
LICENSE_KEY: ${{ secrets.MAXMIND_KEY }}
|
||||||
- name: Get specific changed files
|
- name: Get specific changed files
|
||||||
|
|||||||
@@ -418,7 +418,8 @@ export class ProblemDetailHandler extends ContestDetailBaseHandler {
|
|||||||
contest.getRelated(this.args.domainId, this.pdoc.docId),
|
contest.getRelated(this.args.domainId, this.pdoc.docId),
|
||||||
contest.getRelated(this.args.domainId, this.pdoc.docId, 'homework'),
|
contest.getRelated(this.args.domainId, this.pdoc.docId, 'homework'),
|
||||||
])).map((tdocs) => tdocs.filter((tdoc) =>
|
])).map((tdocs) => tdocs.filter((tdoc) =>
|
||||||
this.user.hasPerm(PERM.PERM_VIEW_HIDDEN_CONTEST) || !tdoc.assign?.length || new Set(tdoc.assign).intersection(new Set(this.user.group)).size,
|
this.user.hasPerm(PERM.PERM_VIEW_HIDDEN_CONTEST) || !tdoc.assign?.length
|
||||||
|
|| new Set(tdoc.assign).intersection(new Set(this.user.group)).size,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ export const coreScripts: MigrationScript[] = [
|
|||||||
let pinnedDomains = new Set<string>();
|
let pinnedDomains = new Set<string>();
|
||||||
for (const d of udoc.pinnedDomains) {
|
for (const d of udoc.pinnedDomains) {
|
||||||
if (typeof d === 'string') pinnedDomains.add(d);
|
if (typeof d === 'string') pinnedDomains.add(d);
|
||||||
else pinnedDomains = Set.union(pinnedDomains, d);
|
else pinnedDomains = pinnedDomains.union(new Set(d));
|
||||||
}
|
}
|
||||||
await user.setById(udoc._id, { pinnedDomains: Array.from(pinnedDomains) });
|
await user.setById(udoc._id, { pinnedDomains: Array.from(pinnedDomains) });
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ const page = new NamedPage('home_messages', () => {
|
|||||||
credential: document.cookie.split('sid=')[1].split(';')[0],
|
credential: document.cookie.split('sid=')[1].split(';')[0],
|
||||||
channels: ['message'],
|
channels: ['message'],
|
||||||
}));
|
}));
|
||||||
}
|
};
|
||||||
sock.onmessage = (message) => {
|
sock.onmessage = (message) => {
|
||||||
const msg = JSON.parse(message.data);
|
const msg = JSON.parse(message.data);
|
||||||
if (msg.operation !== 'event') return;
|
if (msg.operation !== 'event') return;
|
||||||
|
|||||||
Reference in new issue
Block a user