Skip to content

Commit 54fc906

Browse files
committed
Merge remote-tracking branch 'origin/alex-fix-mongo8-null-check' into jimmy/back-2416-shadowing-service-prefix
2 parents b85d846 + a08605d commit 54fc906

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

data/summary/store/store.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,13 @@ func (r *Repo[T, A]) GetMigratableUserIDs(ctx context.Context, page *page.Pagina
271271
return nil, errors.New("pagination is missing")
272272
}
273273

274+
// Ensure we do not select items which will be picked up by GetOutdatedUserIDs
275+
// 2 minutes buffer to exclude 90s jellyfish buffer
276+
exclusionTime := time.Now().UTC().Add(2 * time.Minute)
277+
274278
selector := bson.M{
275279
"type": types.GetTypeString[T, A](),
276-
"dates.outdatedSince": nil,
280+
"dates.outdatedSince": bson.M{"$not": bson.M{"$lte": exclusionTime}},
277281
"config.schemaVersion": bson.M{"$ne": types.SchemaVersion},
278282
}
279283

0 commit comments

Comments
 (0)