fixes for index creation

This commit is contained in:
Wyatt Johnson
2018-05-01 12:02:39 -06:00
parent 7717462300
commit b014225b73
4 changed files with 37 additions and 20 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ function getReactionConfig(reaction) {
return {
typeDefs,
indexes: ({ Comment }) => {
Comment.index(
Comment.ensureIndex(
{
created_at: 1,
[`action_counts.${sc(reaction)}`]: 1,