Skip to content

Commit

Permalink
fix: passing value to publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
ericosta-dev committed Nov 13, 2024
1 parent e445d9a commit b2ed1c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connect/api/v2/projects/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def create(self, validated_data):
template_type=template_name,
project_template_type=project_template_type,
description=validated_data.get("description", None),
type=validated_data.get("type", TypeProject.GENERAL),
type=validated_data.get("type", TypeProject.GENERAL.value),
)

self.send_request_flow_product(user)
Expand Down Expand Up @@ -178,7 +178,7 @@ def publish_create_project_message(self, instance, brain_on: bool = False):
"description": instance.description,
"organization_uuid": str(instance.organization.uuid),
"brain_on": brain_on,
"type": instance.type,
"type": instance.type.value,
}
rabbitmq_publisher = RabbitmqPublisher()
rabbitmq_publisher.send_message(
Expand Down

0 comments on commit b2ed1c6

Please sign in to comment.