Explorar el Código

fix(api): slow subs update config return

DDDHuang hace 4 años
padre
commit
9a6653d152
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      apps/emqx_slow_subs/src/emqx_slow_subs_api.erl

+ 1 - 1
apps/emqx_slow_subs/src/emqx_slow_subs_api.erl

@@ -130,7 +130,7 @@ settings(get, _) ->
 
 settings(put, #{body := Body}) ->
     case emqx_slow_subs:update_settings(Body) of
-        {ok, NewConf} ->
+        {ok, #{config := NewConf}} ->
             {200, NewConf};
         {error, Reason} ->
             Message = list_to_binary(io_lib:format("Update slow subs config failed ~p", [Reason])),