diff --git a/pkg/cloudcommon/db/proxy/proxysetting.go b/pkg/cloudcommon/db/proxy/proxysetting.go index ccd5893e67..d7121f3d77 100644 --- a/pkg/cloudcommon/db/proxy/proxysetting.go +++ b/pkg/cloudcommon/db/proxy/proxysetting.go @@ -110,8 +110,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 {