This commit is contained in:
6543 2023-03-20 23:54:33 +01:00
parent 86ec875dd1
commit 23f65a2b70
No known key found for this signature in database
GPG key ID: B8BE6D610E61C862

View file

@ -64,7 +64,7 @@ func (x xDB) Put(domain string, cert *certificate.Resource) error {
}
defer sess.Close()
if exist, _ := sess.ID(c.Domain).Exist(c); exist {
if exist, _ := sess.ID(c.Domain).Exist(new(Cert)); exist {
if _, err := sess.ID(c.Domain).Update(c); err != nil {
return err
}