mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
active user
This commit is contained in:
parent
807c6eae15
commit
80f25c54c9
@ -372,7 +372,7 @@ func (m *MsgMongoDriver) RangeUserSendCount(ctx context.Context, start time.Time
|
|||||||
"$sortByCount": "$msgs",
|
"$sortByCount": "$msgs",
|
||||||
},
|
},
|
||||||
bson.M{
|
bson.M{
|
||||||
"sort": bson.M{
|
"$sort": bson.M{
|
||||||
"count": sort,
|
"count": sort,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -385,12 +385,12 @@ func (m *MsgMongoDriver) RangeUserSendCount(ctx context.Context, start time.Time
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
bson.M{
|
bson.M{
|
||||||
"addFields": bson.M{
|
"$addFields": bson.M{
|
||||||
"user_count": bson.M{
|
"user_count": bson.M{
|
||||||
"$size": "$result",
|
"$size": "$result",
|
||||||
},
|
},
|
||||||
"msg_count": bson.M{
|
"msg_count": bson.M{
|
||||||
"sum": "$result.count",
|
"$sum": "$result.count",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user