Skip to content

Commit

Permalink
fix(cache/mongo): UpdateDocuments 缺少索引
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonymous committed Nov 11, 2024
1 parent b728519 commit 6b327e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions storage/cache/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ func (m MongoDB) Init() error {
{"id", 1},
},
},
// for UpdateDocuments
{
Keys: bson.D{
{"collection", 1},
{"id", 1},
},
},
{
Keys: bson.D{
{"collection", 1},
Expand Down

0 comments on commit 6b327e6

Please sign in to comment.