debug done.

This commit is contained in:
Sense T
2024-04-19 13:52:33 +08:00
parent 47335ca5e9
commit af9d966376
6 changed files with 16 additions and 14 deletions

View File

@@ -138,7 +138,7 @@ func DeleteDomain(id string) error {
return err
}
if err := (recordsDAO{}).Delete(tx, &models.Record[models.RecordContentDefault]{Zone: domain.WithDotEnd()}); err != nil {
if err := (recordsDAO{}).Delete(tx, &models.Record[models.RecordContentDefault]{}, &models.Record[models.RecordContentDefault]{Zone: domain.WithDotEnd()}); err != nil {
tx.Rollback()
return err
}