Skip to content

Commit

Permalink
Broadcast fix (#1553)
Browse files Browse the repository at this point in the history
* Removed repeated fetching of templates in send_msg function and fixed test cases for the same.

* Removed repeated fetching of templates in send_msg function and fixed test cases for the same.

* Added default value none for the template_name and language_code.
  • Loading branch information
maheshsattala authored Sep 30, 2024
1 parent 4b5f982 commit b28c204
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kairon/shared/chat/broadcast/data_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class MessageBroadcastSettings(Auditlog):
recipients_config = EmbeddedDocumentField(RecipientsConfiguration)
template_config = ListField(EmbeddedDocumentField(TemplateConfiguration))
pyscript = StringField()
template_name = StringField()
language_code = StringField()
template_name = StringField(default=None)
language_code = StringField(default=None)
retry_count = IntField(default=0)
bot = StringField(required=True)
user = StringField(required=True)
Expand Down

0 comments on commit b28c204

Please sign in to comment.