refactor: 清理冗余代码并修复提示文案
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user