core: add history for psdoc,ddoc,drdoc

This commit is contained in:
undefined committed 2020-10-05 20:58:18 +08:00
1 parent c49970f4be
commit b8c316c44b
12 files changed
+70 -32

No files matched your search

+2 -5
View File
@@ -121,11 +121,8 @@ export async function getList(
if (pdocs.length !== pids.length) {
for (const pid of pids) {
if (!(r[pid] || l[pid])) {
if (doThrow) {
throw new ProblemNotFoundError(domainId, pid);
} else {
r[pid] = pdocHidden;
}
if (doThrow) throw new ProblemNotFoundError(domainId, pid);
else r[pid] = pdocHidden;
}
}
}