This commit is contained in:
wangchuxiao
2023-03-10 18:37:36 +08:00
parent d545a7f753
commit 662254f30f
8 changed files with 341 additions and 77 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ func (c *MsgTool) FixGroupSeq(ctx context.Context, groupID string) error {
func (c *MsgTool) fixGroupSeq(ctx context.Context, groupID string, userIDs []string) error {
_, maxSeqMongo, maxSeqCache, err := c.msgDatabase.GetSuperGroupMinMaxSeqInMongoAndCache(ctx, groupID)
if err != nil {
if err != unrelation.ErrMsgNotFound {
if err == unrelation.ErrMsgNotFound {
return nil
}
return err