Merge remote-tracking branch 'origin/errcode' into errcode

This commit is contained in:
withchao
2023-06-01 15:22:28 +08:00
+1 -1
View File
@@ -417,7 +417,7 @@ func (db *commonMsgDatabase) GetMsgBySeqsRange(ctx context.Context, userID strin
if err != nil && errs.Unwrap(err) != redis.Nil {
return 0, 0, nil, err
}
if userMinSeq < minSeq {
if userMinSeq > minSeq {
minSeq = userMinSeq
}
if minSeq > end {