Node.js based forum software built for the modern web
fix: #11052, add missing await
Barış Soner Uşaklıbb82eb71e235
diff --git a/src/posts/delete.js b/src/posts/delete.jsindex 900d0c717c..fb285b5128 100644--- a/src/posts/delete.js+++ b/src/posts/delete.js@@ -203,7 +203,7 @@ module.exports = function (Posts) {await Promise.all(promises);const parentPids = _.uniq(postsWithParents.map(p => p.toPid));- const counts = db.sortedSetsCard(parentPids.map(pid => `pid:${pid}:replies`));+ const counts = await db.sortedSetsCard(parentPids.map(pid => `pid:${pid}:replies`));await db.setObjectBulk(parentPids.map((pid, index) => [`post:${pid}`, { replies: counts[index] }]));}