Skip to content

Commit 1e65770

Browse files
authored
fix: change errs to custom errs avoid sdk panic. (#800)
Signed-off-by: Gordon <[email protected]>
1 parent 1314624 commit 1e65770

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/interaction/msg_sync.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"context"
1919
"errors"
2020
"fmt"
21-
"gorm.io/gorm"
2221
"runtime/debug"
2322
"strings"
2423
"sync"
@@ -93,7 +92,7 @@ func (m *MsgSyncer) loadSeq(ctx context.Context) error {
9392

9493
if len(conversationIDList) == 0 {
9594
version, err := m.db.GetAppSDKVersion(ctx)
96-
if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) {
95+
if err != nil && !errors.Is(err, errs.ErrRecordNotFound) {
9796
return err
9897
}
9998
if version == nil || !version.Installed {

0 commit comments

Comments
 (0)