Skip to content

Commit

Permalink
Made the is_resend to string instead of bool. (#1365)
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshsattala authored Jul 23, 2024
1 parent 32ecad2 commit 64b29b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kairon/events/definitions/message_broadcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def execute(self, event_id: Text, **kwargs):
reference_id = None
status = EVENT_STATUS.FAIL.value
exception = None
is_resend = kwargs.get('is_resend', False)
is_resend = bool(kwargs.get('is_resend', False))
try:
config, reference_id = self.__retrieve_config(event_id, is_resend)
broadcast = MessageBroadcastFactory.get_instance(config["connector_type"]).from_config(config, event_id,
Expand Down Expand Up @@ -115,7 +115,7 @@ def _add_schedule(self, config: Dict):
def _resend_broadcast(self, msg_broadcast_id: Text):
try:
payload = {'bot': self.bot, 'user': self.user,
"event_id": msg_broadcast_id, "is_resend": True}
"event_id": msg_broadcast_id, "is_resend": "True"}
Utility.request_event_server(EventClass.message_broadcast, payload)
return msg_broadcast_id
except Exception as e:
Expand Down

0 comments on commit 64b29b4

Please sign in to comment.