Update getReactionConfig.js (#2618)

* Update getReactionConfig.js

Delete duplicated code

* fix: linting
This commit is contained in:
Pepe Franco
2019-10-04 03:10:20 +10:00
committed by Wyatt Johnson
parent 1a2fa73941
commit fb2f36d0ee
@@ -21,17 +21,6 @@ function getReactionConfig(reaction) {
background: true,
}
);
Comment.collection.ensureIndex(
{
asset_id: 1,
[`action_counts.${sc(reaction)}`]: -1,
created_at: -1,
},
{
background: true,
}
);
}
const reactionPlural = pluralize(reaction);