mirror of https://github.com/halo-dev/halo
fix: Returns the result in the content api for options getby (#1353)
parent
9ccd19bfc6
commit
bec10e9066
|
@ -82,7 +82,7 @@ public class OptionController {
|
|||
@ApiOperation("Gets option value by option key")
|
||||
public BaseResponse<Object> getBy(@PathVariable("key") String key) {
|
||||
Object optionValue = optionFilter.filter(key)
|
||||
.map(k -> optionService.getByKey(key))
|
||||
.flatMap(k -> optionService.getByKey(key))
|
||||
.orElse(null);
|
||||
return BaseResponse.ok(optionValue);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue