Skip to content

Commit

Permalink
Adding description to added functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Janusz Jakubiec authored and Janusz Jakubiec committed Jun 21, 2022
1 parent 209ea82 commit 50c2054
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 4 additions & 3 deletions priv/graphql/schemas/admin/offline.gql
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""
Allow admin to delete offline messages from specified domain
"""
type OfflineAdminMutation @protected{
""
"Allow admin to delete offline messages whose date has expired"
deleteExpiredMessages(domain: String!): String
@protected(type: DOMAIN, args: ["domain"])
""
"Allow the admin to delete messages at least as old as the number of days specified in the parameter"
deleteOldMessages(domain: String!, days: Int!): String
@protected(type: DOMAIN, args: ["domain"])
}
}
3 changes: 0 additions & 3 deletions src/graphql/mongoose_graphql_errors.erl
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ err(_Ctx, ErrorTerm) ->
%% callback invoked when resolver crashes
-spec crash(map(), term()) -> err_msg().
crash(_Ctx, Err = #{type := Type}) ->
io:format("-------------------------\n"),
io:format("~p\n", [Err]),
io:format("-------------------------\n"),
?LOG_ERROR(Err#{what => graphql_crash}),
#{message => <<"Unexpected ", Type/binary, " resolver crash">>,
extensions => #{code => resolver_crash}}.
Expand Down

0 comments on commit 50c2054

Please sign in to comment.