Skip to content

Commit 566b508

Browse files
committed
fix: update ip_address retrieval to use kwargs for improved reliability
1 parent 16d00e1 commit 566b508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/trigger/handler/impl/task/application_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def execute(self, trigger_task, **kwargs):
114114
"chat_user_id": chat_user_id,
115115
'chat_user_type': ChatUserType.ANONYMOUS_USER.value,
116116
'application_id': application_id,
117-
'ip_address': parameters['ip_address'],
117+
'ip_address': kwargs.get('body')['ip_address'],
118118
'source': {
119119
'type': ChatSourceChoices.TRIGGER.value
120120
},

0 commit comments

Comments
 (0)