(orgID string)
| 320 | if updates.HostnameAlias != nil { |
| 321 | if *updates.HostnameAlias == "" { |
| 322 | fields["hostname_alias"] = nil |
| 323 | } else { |
| 324 | fields["hostname_alias"] = *updates.HostnameAlias |
| 325 | } |
| 326 | } |
| 327 | found := false |
| 328 | err := s.db().Transaction(func(tx *gorm.DB) error { |
| 329 | // Serialize with org connection admission (request-owned leases read |
| 330 | // org limits under this lock) — see LockOrgConnectionAdmissionTx. |
| 331 | if err := configstore.LockOrgConnectionAdmissionTx(tx, name); err != nil { |
no test coverage detected