enhance: save certificate before renew #723

This commit is contained in:
Jacky 2024-11-16 10:51:35 +08:00
parent e6998feca4
commit f4c17f0c65
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
9 changed files with 23 additions and 18 deletions

View file

@ -98,12 +98,9 @@ func IssueCert(c *gin.Context) {
// block, until errChan closes
for err = range errChan {
log.Error(err)
// Save logs to db
log.Exit()
err = ws.WriteJSON(IssueCertResponse{
Status: Error,
Message: err.Error(),
@ -112,7 +109,6 @@ func IssueCert(c *gin.Context) {
logger.Error(err)
return
}
return
}