fix(rewrite): fix get topic rewrite list fail

This commit is contained in:
Turtle 2021-08-27 18:36:04 +08:00 committed by turtleDeng
parent 56f7d64d79
commit 8f058a7680
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ disable() ->
emqx_hooks:del('message.publish', {?MODULE, rewrite_publish}).
list() ->
maps:get(<<"rules">>, emqx:get_raw_config([<<"rewrite">>], []), []).
emqx:get_raw_config([<<"rewrite">>], []).
update(Rules0) ->
{ok, #{config := Rules}} = emqx:update_config([rewrite], Rules0),