diff --git a/internal/migrations/v8.go b/internal/migrations/v8.go index bb739dc8..ab6aa3ea 100644 --- a/internal/migrations/v8.go +++ b/internal/migrations/v8.go @@ -69,7 +69,7 @@ func addRolePinAndHideFeatures(x *xorm.Engine) error { {ID: 122, Key: "rank.question.hide", Value: `-1`}, } for _, c := range defaultConfigTable { - exist, err := x.Get(&entity.Config{ID: c.ID, Key: c.Key}) + exist, err := x.Get(&entity.Config{ID: c.ID}) if err != nil { return fmt.Errorf("get config failed: %w", err) } diff --git a/internal/service/auth/auth.go b/internal/service/auth/auth.go index 22eba69a..537de3d1 100644 --- a/internal/service/auth/auth.go +++ b/internal/service/auth/auth.go @@ -43,7 +43,6 @@ func (as *AuthService) GetUserCacheInfo(ctx context.Context, accessToken string) } cacheInfo, _ := as.authRepo.GetUserStatus(ctx, userCacheInfo.UserID) if cacheInfo != nil { - log.Debugf("user status updated: %+v", cacheInfo) userCacheInfo.UserStatus = cacheInfo.UserStatus userCacheInfo.EmailStatus = cacheInfo.EmailStatus userCacheInfo.RoleID = cacheInfo.RoleID