mirror of
https://github.com/wassname/talk.git
synced 2026-10-04 13:10:23 +08:00
fixes for index creation
This commit is contained in:
1 parent
7717462300
commit
b014225b73
4 files changed
+37
-20
No files matched your search
@@ -128,7 +128,7 @@ function getReactionConfig(reaction) {
|
||||
return {
|
||||
typeDefs,
|
||||
indexes: ({ Comment }) => {
|
||||
Comment.index(
|
||||
Comment.ensureIndex(
|
||||
{
|
||||
created_at: 1,
|
||||
[`action_counts.${sc(reaction)}`]: 1,
|
||||
|
||||
Reference in new issue
Block a user