mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Update getReactionConfig.js (#2618)
* Update getReactionConfig.js Delete duplicated code * fix: linting
This commit is contained in:
committed by
Wyatt Johnson
parent
1a2fa73941
commit
fb2f36d0ee
@@ -21,17 +21,6 @@ function getReactionConfig(reaction) {
|
|||||||
background: true,
|
background: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
Comment.collection.ensureIndex(
|
|
||||||
{
|
|
||||||
asset_id: 1,
|
|
||||||
[`action_counts.${sc(reaction)}`]: -1,
|
|
||||||
created_at: -1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
background: true,
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const reactionPlural = pluralize(reaction);
|
const reactionPlural = pluralize(reaction);
|
||||||
|
|||||||
Reference in New Issue
Block a user