stage 2, not completed

This commit is contained in:
Sense T
2024-04-19 10:05:19 +08:00
parent 88b2255f8b
commit 34fb2a478b
5 changed files with 5 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ func GetDomains(domain string) ([]models.Domain, error) {
func UpdateDomain(d *models.Domain) error {
tx := database.Client.Begin()
logrus.Debug(d)
if _, err := (domainsDAO{}).Update(tx, d); err != nil {
tx.Rollback()
return err