Fix error for updating activated theme (#1300)

pull/1304/head
John Niang 2021-03-07 11:38:11 +08:00 committed by GitHub
parent 3019fe0d34
commit 38093df0c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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("当前安装的主题已存在");
}