Skip to content

Commit

Permalink
fix: change errs to custom errs avoid sdk panic. (#800) (#802)
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
Co-authored-by: OpenIM-Gordon <1432970085@qq.com>
  • Loading branch information
OpenIM-Robot and FGadvancer authored Nov 29, 2024
1 parent 2bb8ecb commit e8eb653
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/interaction/msg_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"context"
"errors"
"fmt"
"gorm.io/gorm"
"runtime/debug"
"strings"
"sync"
Expand Down Expand Up @@ -93,7 +92,7 @@ func (m *MsgSyncer) loadSeq(ctx context.Context) error {

if len(conversationIDList) == 0 {
version, err := m.db.GetAppSDKVersion(ctx)
if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) {
if err != nil && !errors.Is(err, errs.ErrRecordNotFound) {
return err
}
if version == nil || !version.Installed {
Expand Down

0 comments on commit e8eb653

Please sign in to comment.