11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/lms_graphql/resolvers/canvas/get_preference_communication_channel_id.rb', line 11
def resolve(user_id:, communication_channel_id:, notification:, get_all: false)
result = context[:canvas_api].call("GET_PREFERENCE_COMMUNICATION_CHANNEL_ID").proxy(
"GET_PREFERENCE_COMMUNICATION_CHANNEL_ID",
{
"user_id": user_id,
"communication_channel_id": communication_channel_id,
"notification": notification },
nil,
get_all,
)
get_all ? result : result.parsed_response
end
|