mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
proxysetting: fix validating delete condition
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user