core: user_import: rename to draft

This commit is contained in:
undefined committed 2021-03-27 11:17:04 +08:00
1 parent 1ec793d039
commit c250c8e925
3 files changed
+8 -4

No files matched your search

+4
View File
@@ -74,6 +74,10 @@ export class ProblemMainHandler extends ProblemHandler {
page,
system.get('pagination.problem'),
);
if (q && +q) {
const pdoc = await problem.get(domainId, +q, this.user._id, problem.PROJECTION_LIST);
if (pdoc) pdocs.unshift(pdoc);
}
if (this.user.hasPriv(PRIV.PRIV_USER_PROFILE)) {
psdict = await problem.getListStatus(
domainId, this.user._id, pdocs.map((pdoc) => pdoc.docId),