Skip to content

Commit

Permalink
OP-2194: fixed TicketMutation creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sniedzielski committed Nov 19, 2024
1 parent 81eaea8 commit 4fa78a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grievance_social_protection/gql_mutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _mutate(cls, user, **data):
if client_mutation_id:
ticket_id = response['data']['id']
ticket = Ticket.objects.get(id=ticket_id)
TicketMutation.object_mutated(user, client_mutation_id=client_mutation_id, Ticket=ticket)
TicketMutation.object_mutated(user, client_mutation_id=client_mutation_id, ticket=ticket)

if not response['success']:
return response
Expand Down Expand Up @@ -105,7 +105,7 @@ def _mutate(cls, user, **data):
if client_mutation_id:
ticket_id = response['data']['id']
ticket = Ticket.objects.get(id=ticket_id)
TicketMutation.object_mutated(user, client_mutation_id=client_mutation_id, Ticket=ticket)
TicketMutation.object_mutated(user, client_mutation_id=client_mutation_id, ticket=ticket)

if not response['success']:
return response
Expand Down Expand Up @@ -187,7 +187,7 @@ def _mutate(cls, user, **data):
if client_mutation_id:
comment_id = data.get('id')
ticket = Comment.objects.get(id=comment_id).ticket
TicketMutation.object_mutated(user, client_mutation_id=client_mutation_id, Ticket=ticket)
TicketMutation.object_mutated(user, client_mutation_id=client_mutation_id, ticket=ticket)

if not response['success']:
return response
Expand Down

0 comments on commit 4fa78a6

Please sign in to comment.