mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: numThumbs count on associate
This commit is contained in:
@@ -81,7 +81,7 @@ Thumbs.associate = async function ({ id, path }) {
|
||||
const topics = require('.');
|
||||
await db.sortedSetAdd(set, numThumbs, path);
|
||||
if (!isDraft) {
|
||||
await topics.setTopicField(id, 'numThumbs', numThumbs);
|
||||
await topics.setTopicField(id, 'numThumbs', numThumbs + 1);
|
||||
}
|
||||
cache.del(set);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user