core: api: problem.manage.edit & problem.manage.delete

This commit is contained in:
undefined committed 2021-10-27 22:42:40 +08:00
1 parent a75804362d
commit 5d9310fb78
7 files changed
+62 -15

No files matched your search

+1 -1
View File
@@ -107,8 +107,8 @@ export function deleteOne<K extends keyof DocType>(
domainId: string, docType: K, docId: DocType[K]['docId'],
) {
return Promise.all([
collStatus.deleteMany({ domainId, docType, docId }),
coll.deleteOne({ domainId, docType, docId }),
collStatus.deleteMany({ domainId, docType, docId }),
]);
}