Skip to content

Commit

Permalink
feat: 一键签发证书支持自动同步域名
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 26, 2024
1 parent a65bcf5 commit 2970aaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/data/website.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,10 @@ func (r *websiteRepo) ObtainCert(ctx context.Context, id uint) error {
return err
}
}
newCert.Domains = website.Domains
if err = app.Orm.Save(newCert).Error; err != nil {
return err
}

_, err = cRepo.ObtainAuto(newCert.ID)
if err != nil {
Expand Down

0 comments on commit 2970aaa

Please sign in to comment.