🐛 修复禁用邮件模版异常

pull/82/head^2
awenes 2024-04-06 19:46:12 +08:00
parent a0a8e9fbe0
commit d5dc2aeaf9
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ public class MailTemplateServiceImpl extends SettingServiceImpl implements MailT
@Override
@CacheEvict(key = "#type.code")
public void disableCustomEmailTemplate(MailType type) {
mailTemplateRepository.deleteByType(type);
mailTemplateRepository.deleteByType(type.getCode());
}
/**