Skip to content

Commit ca74b8f

Browse files
committed
fix: update
1 parent 9f8ed67 commit ca74b8f

File tree

1 file changed

+2
-2
lines changed
  • src/codegen/extensions/events

1 file changed

+2
-2
lines changed

src/codegen/extensions/events/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, app: CodegenApp):
4343

4444
def subscribe_handler_to_webhook(self, func_name: str, modal_app: modal.App, event_name):
4545
app_name = modal_app.name
46-
web_url = modal.Function.from_name(app_name=app_name, name=func_name)
46+
web_url = modal.Function.from_name(app_name=app_name, name=func_name).web_url
4747
client = LinearClient(access_token=self.access_token)
4848
print(f"Subscribing to {event_name} for {app_name} at {web_url}")
4949
client.register_webhook(
@@ -55,7 +55,7 @@ def subscribe_handler_to_webhook(self, func_name: str, modal_app: modal.App, eve
5555

5656
def unsubscribe_handler_to_webhook(self, func_name: str, modal_app: modal.App, event_name):
5757
app_name = modal_app.name
58-
web_url = modal.Function.from_name(app_name=app_name, name=func_name)
58+
web_url = modal.Function.from_name(app_name=app_name, name=func_name).web_url
5959
client = LinearClient(access_token=self.access_token)
6060
print(f"Unsubscribing from {event_name} for {app_name} at {web_url}")
6161
client.register_webhook(

0 commit comments

Comments
 (0)