未验证 提交 38093df0 编写于 作者: J John Niang 提交者: GitHub

Fix error for updating activated theme (#1300)

上级 3019fe0d
......@@ -132,7 +132,7 @@ public class ThemeRepositoryImpl
@Override
public ThemeProperty attemptToAdd(ThemeProperty newProperty) {
// 1. check existence
final var alreadyExist = fetchThemePropertyByThemeId(newProperty.getId()).isPresent();
final var alreadyExist = fetchThemeByThemeId(newProperty.getId()).isPresent();
if (alreadyExist) {
throw new AlreadyExistsException("当前安装的主题已存在");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册