测试数据上传时自动读取config

This commit is contained in:
undefined committed 2020-06-13 22:38:22 +08:00
1 parent 0d7d6ea12a
commit 4b3c10b4eb
14 files changed
+89 -42

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ function editReply(domainId, drid, content) {
async function delReply(domainId, drid) {
const drdoc = await getReply(domainId, drid);
if (!drdoc) throw new DocumentNotFoundError(drid);
return await Promise.all([ // eslint-disable-line no-return-await
return await Promise.all([
document.deleteOne(domainId, document.TYPE_DISCUSSION_REPLY, drid),
document.inc(domainId, document.TYPE_DISCUSSION, drdoc.parentId, 'nReply', -1),
]);