From 9f32e3a9bc2c8f4efd3e01947fd84d87aecffa42 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Tue, 4 Jul 2023 09:56:02 +0800 Subject: [PATCH] active user --- pkg/common/db/unrelation/msg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/common/db/unrelation/msg.go b/pkg/common/db/unrelation/msg.go index f4f609de0..b8daa27ca 100644 --- a/pkg/common/db/unrelation/msg.go +++ b/pkg/common/db/unrelation/msg.go @@ -313,9 +313,9 @@ func (m *MsgMongoDriver) MarkSingleChatMsgsAsRead(ctx context.Context, userID st func (m *MsgMongoDriver) RangeUserSendCount(ctx context.Context, start time.Time, end time.Time, ase bool, pageNumber int32, showNumber int32) (msgCount int64, userCount int64, users []*table.UserCount, err error) { var sort int if ase { - sort = -1 - } else { sort = 1 + } else { + sort = -1 } type Result struct { MsgCount int64 `bson:"msg_count"`