feat(site): sync operation

This commit is contained in:
Jacky 2024-10-26 10:33:57 +08:00
parent 6c137e5229
commit 22e37e4b61
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
43 changed files with 4875 additions and 3712 deletions

View file

@ -50,9 +50,9 @@ type Cert struct {
}
func FirstCert(confName string) (c Cert, err error) {
err = db.First(&c, &Cert{
err = db.Limit(1).Where(&Cert{
Filename: confName,
}).Error
}).Find(&c).Error
return
}