Skip to content

Commit

Permalink
Add UUID to SMS response dictionary
Browse files Browse the repository at this point in the history
This change ensures that each SMS response now includes a unique identifier (UUID) for better tracking and identification of messages. It enhances the handling of SMS responses by providing an additional reference field.
  • Loading branch information
dhongu committed Feb 4, 2025
1 parent 3c3eb02 commit 9491530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deltatech_sms/models/sms_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _contact_iap(self, local_endpoint, params, timeout=15):
res = []
for message in params["messages"]:
for number in message["numbers"]:
res_value = {"state": "success"}
res_value = {"state": "success", "uuid": number["uuid"]}
response = account.sudo().send_sms(number["number"], message["content"])
if response["status"] != 200:
res_value["state"] = "server_error"
Expand Down

0 comments on commit 9491530

Please sign in to comment.