From 50c20540f7ae77b237a4be4b539c2705d069a61e Mon Sep 17 00:00:00 2001 From: Janusz Jakubiec Date: Tue, 21 Jun 2022 14:10:17 +0200 Subject: [PATCH] Adding description to added functions --- priv/graphql/schemas/admin/offline.gql | 7 ++++--- src/graphql/mongoose_graphql_errors.erl | 3 --- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/priv/graphql/schemas/admin/offline.gql b/priv/graphql/schemas/admin/offline.gql index c9aae4c14b..9e1b15a184 100644 --- a/priv/graphql/schemas/admin/offline.gql +++ b/priv/graphql/schemas/admin/offline.gql @@ -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"]) -} \ No newline at end of file +} diff --git a/src/graphql/mongoose_graphql_errors.erl b/src/graphql/mongoose_graphql_errors.erl index 1724ebcd43..d01b3d2c80 100644 --- a/src/graphql/mongoose_graphql_errors.erl +++ b/src/graphql/mongoose_graphql_errors.erl @@ -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}}.