Skip to content

Commit

Permalink
fix: numThumbs count on associate
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Feb 13, 2021
1 parent 1490b32 commit 76bcc0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/topics/thumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 76bcc0c

Please sign in to comment.