Use Casvisor for records

This commit is contained in:
Yang Luo
2023-08-19 23:15:02 +08:00
parent 463fa8b636
commit ea7718d7b7
13 changed files with 87 additions and 475 deletions

View File

@ -437,14 +437,6 @@ func organizationChangeTrigger(oldName string, newName string) error {
return err
}
record := new(Record)
record.Owner = newName
record.Organization = newName
_, err = session.Where("organization=?", oldName).Update(record)
if err != nil {
return err
}
resource := new(Resource)
resource.Owner = newName
_, err = session.Where("owner=?", oldName).Update(resource)