./ct_report/coverage/mongoose_graphql_inbox_user_mutation.COVER.html

1 -module(mongoose_graphql_inbox_user_mutation).
2
3 -behaviour(mongoose_graphql).
4
5 -export([execute/4]).
6
7 -import(mongoose_graphql_helper, [format_result/2, null_to_default/2]).
8
9 -ignore_xref([execute/4]).
10
11 execute(#{user := UserJID}, inbox, <<"flushBin">>, #{<<"days">> := Days}) ->
12
:-(
Res = mod_inbox_api:flush_user_bin(UserJID, null_to_default(Days, 0)),
13
:-(
format_result(Res, #{user => jid:to_binary(UserJID)}).
Line Hits Source