class LMSGraphQL::Mutations::Canvas::UpdatePreferenceCommunicationChannelId
Public Instance Methods
resolve(communication_channel_id:, notification:, notification_preferences_frequency:)
click to toggle source
# File lib/lms_graphql/mutations/canvas/update_preference_communication_channel_id.rb, line 14 def resolve(communication_channel_id:, notification:, notification_preferences_frequency:) context[:canvas_api].call("UPDATE_PREFERENCE_COMMUNICATION_CHANNEL_ID").proxy( "UPDATE_PREFERENCE_COMMUNICATION_CHANNEL_ID", { "communication_channel_id": communication_channel_id, "notification": notification }, { "notification_preferences[frequency]": notification_preferences_frequency }, ).parsed_response end