refactor: 清理冗余代码并修复提示文案

This commit is contained in:
Nixevol
2026-07-05 08:55:32 +08:00
parent a0ccf3805b
commit 7ac43cf96b
6 changed files with 17 additions and 18 deletions
@@ -53,7 +53,7 @@ export class CertificateService {
}
async update(id: number, dto: UpdateCertificateDto) {
const cert = await this.ensureCert(id);
await this.ensureCert(id);
const updated = await this.prisma.certificate.update({
where: { id },
data: {