fix: update cert model bug

This commit is contained in:
Jacky 2024-06-18 18:40:49 +08:00
parent 47d4013f3d
commit 65befe282b
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
2 changed files with 3 additions and 4 deletions

View file

@ -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