Skip to content

Commit

Permalink
fix None string for webhook url and totp url (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Oct 18, 2024
1 parent 4b7a4ed commit c657957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skyvern/forge/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ async def create_task(self, task_request: TaskRequest, organization_id: str | No
task = await app.DATABASE.create_task(
url=str(task_request.url),
title=task_request.title,
webhook_callback_url=str(task_request.webhook_callback_url),
totp_verification_url=str(task_request.totp_verification_url),
webhook_callback_url=str(task_request.webhook_callback_url) if task_request.webhook_callback_url else None,
totp_verification_url=str(task_request.totp_verification_url) if task_request.totp_verification_url else None,
totp_identifier=task_request.totp_identifier,
navigation_goal=task_request.navigation_goal,
data_extraction_goal=task_request.data_extraction_goal,
Expand Down

0 comments on commit c657957

Please sign in to comment.