mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 19:22:46 +08:00
active user
This commit is contained in:
parent
be9c8fcab7
commit
bb667238f2
@ -554,7 +554,7 @@ func (m *MsgMongoDriver) RangeUserSendCount(ctx context.Context, start time.Time
|
|||||||
},
|
},
|
||||||
bson.M{
|
bson.M{
|
||||||
"$project": bson.M{
|
"$project": bson.M{
|
||||||
"msgs": bson.M{
|
"result": bson.M{
|
||||||
"$map": bson.M{
|
"$map": bson.M{
|
||||||
"input": "$msgs",
|
"input": "$msgs",
|
||||||
"as": "item",
|
"as": "item",
|
||||||
@ -691,7 +691,7 @@ func (m *MsgMongoDriver) RangeUserSendCount(ctx context.Context, start time.Time
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
cur, err := m.MsgCollection.Aggregate(ctx, pipeline)
|
cur, err := m.MsgCollection.Aggregate(ctx, pipeline, options.Aggregate().SetAllowDiskUse(true))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, 0, nil, nil, errs.Wrap(err)
|
return 0, 0, nil, nil, errs.Wrap(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user