Skip to content

Commit

Permalink
fix usage of ResourceResponse to use named argument (#2057)
Browse files Browse the repository at this point in the history
  • Loading branch information
aacebo authored Dec 18, 2023
1 parent e61d4b3 commit 7b064bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def send_activities(
)
)

response = response or ResourceResponse(activity.id or "")
response = response or ResourceResponse(id=activity.id or "")

responses.append(response)

Expand Down
2 changes: 1 addition & 1 deletion libraries/botbuilder-core/tests/simple_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def update_activity(self, context: TurnContext, activity: Activity):
if self._call_on_update is not None:
self._call_on_update(activity)

return ResourceResponse(activity.id)
return ResourceResponse(id=activity.id)

async def process_request(self, activity, handler):
context = TurnContext(self, activity)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async def update_activity(self, context: TurnContext, activity: Activity):
if self._call_on_update is not None:
self._call_on_update(activity)

return ResourceResponse(activity.id)
return ResourceResponse(id=activity.id)

async def process_request(self, activity, handler):
context = TurnContext(self, activity)
Expand Down

0 comments on commit 7b064bb

Please sign in to comment.