mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: add homework files & enhance delete operation (#755)
This commit is contained in:
1 parent
61e56adead
commit
f0219116f3
12 files changed
+175
-13
No files matched your search
@@ -760,7 +760,6 @@ export async function del(domainId: string, tid: ObjectId) {
|
||||
await Promise.all([
|
||||
document.deleteOne(domainId, document.TYPE_CONTEST, tid),
|
||||
document.deleteMultiStatus(domainId, document.TYPE_CONTEST, { docId: tid }),
|
||||
document.deleteMulti(domainId, document.TYPE_DISCUSSION, { parentType: document.TYPE_CONTEST, parentId: tid }),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user