diff --git a/pkg/cloudcommon/db/proxy/proxysetting.go b/pkg/cloudcommon/db/proxy/proxysetting.go index d33a7f2476..4184b269b6 100644 --- a/pkg/cloudcommon/db/proxy/proxysetting.go +++ b/pkg/cloudcommon/db/proxy/proxysetting.go @@ -88,8 +88,7 @@ func (ps *SProxySetting) ValidateDeleteCondition(ctx context.Context) error { return httperrors.NewConflictError("DIRECT setting cannot be deleted") } for _, man := range referrersMen { - t := man.TableSpec().Instance() - n, err := t.Query(). + n, err := man.Query(). Equals("proxy_setting_id", ps.Id). CountWithError() if err != nil {