mirror of https://github.com/halo-dev/halo
Fix option list bug
parent
49e9d9e842
commit
52c3081577
|
@ -13,8 +13,8 @@ import run.halo.app.model.entity.Option;
|
|||
@Data
|
||||
public class OptionOutputDTO implements OutputConverter<OptionOutputDTO, Option> {
|
||||
|
||||
private String optionKey;
|
||||
private String key;
|
||||
|
||||
private String optionValue;
|
||||
private String value;
|
||||
|
||||
}
|
||||
|
|
|
@ -26,5 +26,5 @@ public interface OptionRepository extends BaseRepository<Option, Integer> {
|
|||
*
|
||||
* @param key key
|
||||
*/
|
||||
void removeByKey(String key);
|
||||
void deleteByKey(String key);
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ public class OptionServiceImpl extends AbstractCrudService<Option, Integer> impl
|
|||
|
||||
if (StringUtils.isBlank(value)) {
|
||||
// If the value is blank, remove the key
|
||||
optionRepository.removeByKey(key);
|
||||
optionRepository.deleteByKey(key);
|
||||
log.debug("Removed option key: [{}]", key);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue