mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
fix: update cert model bug
This commit is contained in:
parent
47d4013f3d
commit
65befe282b
2 changed files with 3 additions and 4 deletions
|
@ -110,7 +110,6 @@ func AddCert(c *gin.Context) {
|
|||
}
|
||||
|
||||
err := certModel.Insert()
|
||||
|
||||
if err != nil {
|
||||
api.ErrHandler(c, err)
|
||||
return
|
||||
|
@ -124,7 +123,6 @@ func AddCert(c *gin.Context) {
|
|||
}
|
||||
|
||||
err = content.WriteFile()
|
||||
|
||||
if err != nil {
|
||||
api.ErrHandler(c, err)
|
||||
return
|
||||
|
@ -180,7 +178,6 @@ func ModifyCert(c *gin.Context) {
|
|||
}
|
||||
|
||||
err = content.WriteFile()
|
||||
|
||||
if err != nil {
|
||||
api.ErrHandler(c, err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue