Skip to content

Commit

Permalink
Merge pull request #812 from weni-ai/feature/send-message-with-descri…
Browse files Browse the repository at this point in the history
…ption

adding on message project description field
  • Loading branch information
barbosajackson authored Dec 7, 2023
2 parents 4e501dd + e4c0b08 commit 97eb47d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connect/api/v1/project/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class Meta:
"first_access",
"wa_demo_token",
"redirect_url",
"description",
]
ref_name = None

Expand All @@ -86,6 +87,7 @@ class Meta:
created_at = serializers.DateTimeField(
required=False, read_only=True, style={"show": False}
)
description = serializers.CharField(max_length=1000, required=False)
authorizations = serializers.SerializerMethodField(style={"show": False})
pending_authorizations = serializers.SerializerMethodField(style={"show": False})
authorization = serializers.SerializerMethodField(style={"show": False})
Expand Down
1 change: 1 addition & 0 deletions connect/api/v2/projects/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def publish_create_project_message(self, instance):
"organization_id": instance.organization.inteligence_organization,
"extra_fields": extra_fields if instance.is_template else {},
"authorizations": authorizations,
"description": instance.description,
}
rabbitmq_publisher = RabbitmqPublisher()
rabbitmq_publisher.send_message(message_body, exchange="projects.topic", routing_key="")
Expand Down

0 comments on commit 97eb47d

Please sign in to comment.