Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mo3et committed Aug 13, 2024
1 parent d467381 commit a2bbb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/common/storage/database/mgo/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ func (m *MsgMgo) GetDocIDs(ctx context.Context) ([]string, error) {
} else {
rand.Seed(uint64(time.Now().UnixMilli()))
skip = rand.Intn(int(count / int64(limit)))
offset = skip * (int(count) / limit)
offset = skip * limit
}

res, err := mongoutil.Aggregate[*model.MsgDocModel](ctx, m.coll, []bson.M{
Expand Down

0 comments on commit a2bbb6a

Please sign in to comment.