fix(slow_subs): fix response data type error

This commit is contained in:
lafirest 2022-03-10 10:26:16 +08:00
parent f7ec74d367
commit 8e2ff381a4
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ slow_subs(get, _) ->
SortedL = lists:sort(SortFun, RankL), SortedL = lists:sort(SortFun, RankL),
SortedL2 = lists:sublist(SortedL, ?MAX_SIZE), SortedL2 = lists:sublist(SortedL, ?MAX_SIZE),
{200, SortedL2}. {200, #{data => SortedL2}}.
get_history() -> get_history() ->
Node = node(), Node = node(),