mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat(site): sync operation
This commit is contained in:
parent
6c137e5229
commit
22e37e4b61
43 changed files with 4875 additions and 3712 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue