Class: LMSGraphQL::Mutations::Canvas::UpdateBlackoutDateAccount

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/update_blackout_date_accounts.rb

Instance Method Summary collapse

Instance Method Details

#resolve(account_id:, id:, start_date: nil, end_date: nil, event_title: nil) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/lms_graphql/mutations/canvas/update_blackout_date_accounts.rb', line 16

def resolve(account_id:, id:, start_date: nil, end_date: nil, event_title: nil)
  context[:canvas_api].call("UPDATE_BLACKOUT_DATE_ACCOUNTS").proxy(
    "UPDATE_BLACKOUT_DATE_ACCOUNTS",
    {
      "account_id": ,
      "id": id
    },
    {
      "start_date": start_date,
      "end_date": end_date,
      "event_title": event_title
    },
  ).parsed_response
end