mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
fixes for index creation
This commit is contained in:
@@ -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