Skip to content

Commit a44670e

Browse files
committed
Merge remote-tracking branch 'origin/alex-fix-mongo8-null-check' into jimmy/back-2996
2 parents 34789f9 + 8a97e25 commit a44670e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

data/store/mongo/mongo_summary.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ func (d *SummaryRepository) EnsureIndexes() error {
2929
Keys: bson.D{
3030
{Key: "type", Value: 1},
3131
{Key: "dates.outdatedSince", Value: 1},
32-
{Key: "config.schemaVersion", Value: 1},
3332
{Key: "dates.lastUpdatedDate", Value: 1},
33+
{Key: "config.schemaVersion", Value: 1},
3434
},
3535
Options: options.Index().
36-
SetName("OutdatedSinceSchemaLastUpdated"),
36+
SetName("OutdatedAndSchemaMigration"),
3737
},
3838
})
3939
}

data/store/mongo/mongo_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,9 @@ var _ = Describe("Mongo", Label("mongodb", "slow", "integration"), func() {
416416
"Name": Equal("UserIDTypeUnique"),
417417
}),
418418
MatchFields(IgnoreExtras, Fields{
419-
"Key": Equal(storeStructuredMongoTest.MakeKeySlice("type", "dates.outdatedSince", "config.schemaVersion", "dates.lastUpdatedDate")),
419+
"Key": Equal(storeStructuredMongoTest.MakeKeySlice("type", "dates.outdatedSince", "dates.lastUpdatedDate", "config.schemaVersion")),
420420
"Background": Equal(false),
421-
"Name": Equal("OutdatedSinceSchemaLastUpdated"),
421+
"Name": Equal("OutdatedAndSchemaMigration"),
422422
}),
423423
))
424424
})

0 commit comments

Comments
 (0)