core: move lib/misc to ui

This commit is contained in:
undefined committed 2022-07-10 22:27:46 +08:00
1 parent 08462cf870
commit baab7bb68c
10 files changed
+62 -69

No files matched your search

+1
View File
@@ -376,6 +376,7 @@ export class ContestFilesHandler extends ContestDetailBaseHandler {
if (!this.user.own(this.tdoc)) this.checkPerm(PERM.PERM_EDIT_CONTEST);
const body = {
tdoc: this.tdoc,
tsdoc: this.tsdoc,
owner_udoc: await user.getById(domainId, this.tdoc.owner),
files: sortFiles(this.tdoc.files || []),
urlForFile: (filename: string) => this.url('contest_file_download', { tid, filename }),