From 08dcd3a322fb3c186e6cf113f46b8df69fef231a Mon Sep 17 00:00:00 2001 From: pupilcc Date: Fri, 27 Sep 2024 21:43:36 +0800 Subject: [PATCH] fix: delete cert sort --- domain/service/cert_service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/domain/service/cert_service.go b/domain/service/cert_service.go index a651286..42148fa 100644 --- a/domain/service/cert_service.go +++ b/domain/service/cert_service.go @@ -101,17 +101,17 @@ func DeleteCert(code string) error { return err } - err = acme.Remove(byCode.Domain) + err = repo.Delete(code) if err != nil { return err } - err = deleteFiles(code) + err = acme.Remove(byCode.Domain) if err != nil { return err } - err = repo.Delete(code) + err = deleteFiles(code) if err != nil { return err }