From 2fd5d98583f1536aa1681a7c7a5d11568652013e Mon Sep 17 00:00:00 2001 From: sniedzielski Date: Mon, 22 Apr 2024 15:45:11 +0200 Subject: [PATCH] CM-868: fixed missing user staff gql --- grievance_social_protection/gql_mutations.py | 2 +- grievance_social_protection/services.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/grievance_social_protection/gql_mutations.py b/grievance_social_protection/gql_mutations.py index c76607b..de5b2c9 100644 --- a/grievance_social_protection/gql_mutations.py +++ b/grievance_social_protection/gql_mutations.py @@ -26,7 +26,7 @@ class TicketStatusEnum(graphene.Enum): description = graphene.String(required=False) reporter_type = graphene.String(required=True, max_lenght=255) reporter_id = graphene.String(required=True) - attending_staff_uuid = graphene.UUID(required=False) + attending_staff_id = graphene.UUID(required=False) date_of_incident = graphene.Date(required=False) status = graphene.Field(TicketStatusEnum, required=False) priority = graphene.String(required=False) diff --git a/grievance_social_protection/services.py b/grievance_social_protection/services.py index e1cbb67..31600ed 100644 --- a/grievance_social_protection/services.py +++ b/grievance_social_protection/services.py @@ -17,8 +17,7 @@ def __init__(self, user, validation_class=TicketValidation): def create(self, obj_data): self._get_content_type(obj_data) self._generate_code(obj_data) - d = super().create(obj_data) - return d + return super().create(obj_data) @register_service_signal('ticket_service.update') def update(self, obj_data):