feat: add built-in "Records" pages back (#2720)

This commit is contained in:
DacongDA
2024-02-20 13:28:29 +08:00
committed by GitHub
parent d731c3c934
commit c4a307b9ec
32 changed files with 591 additions and 3 deletions

View File

@ -459,6 +459,14 @@ 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)