core: fix pid sort

This commit is contained in:
undefined committed 2020-11-23 22:13:43 +08:00
1 parent 19ebf5e9a8
commit 65094e53b6
3 files changed
+5 -2

No files matched your search

-1
View File
@@ -82,7 +82,6 @@ export async function add(
tag: string[] = [], category: string[] = [], data: ProblemDataSource = null, hidden = false,
) {
const pidCounter = await domain.inc(domainId, 'pidCounter', 1);
if (!pid) pid = pidCounter.toString();
return await document.add(
domainId, content, owner, document.TYPE_PROBLEM, pidCounter, null, null,
{