15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/lms_graphql/mutations/canvas/create_single_poll_session.rb', line 15
def resolve(poll_id:, poll_sessions_course_id:, poll_sessions_course_section_id: nil, poll_sessions_has_public_results: nil)
context[:canvas_api].call("CREATE_SINGLE_POLL_SESSION").proxy(
"CREATE_SINGLE_POLL_SESSION",
{
"poll_id": poll_id
},
{
"poll_sessions[course_id]": poll_sessions_course_id,
"poll_sessions[course_section_id]": poll_sessions_course_section_id,
"poll_sessions[has_public_results]": poll_sessions_has_public_results
},
).parsed_response
end
|