mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: delete related ddoc when deleting tdoc
This commit is contained in:
1 parent
c78fc82d5b
commit
4c6aeeb914
6 files changed
+26
-11
No files matched your search
@@ -458,6 +458,7 @@ export async function del(domainId: string, tid: ObjectID, type: Type = document
|
||||
await Promise.all([
|
||||
document.deleteOne(domainId, type, tid),
|
||||
document.deleteMultiStatus(domainId, type, { docId: tid }),
|
||||
document.deleteMulti(domainId, document.TYPE_DISCUSSION, { parentType: type, parentId: tid }),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user