Merge pull request #7258 from lafirest/fix/slow_subs_api

fix(slow_subs): fix response data type error
This commit is contained in:
lafirest 2022-03-10 11:15:03 +08:00 committed by GitHub
commit 3f8d8be8ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(),