Skip to content

Automate browser based workflows with AI

Store empty user_url as None in initialize_task_v2 (#3793)

Stanislav Novosad19c4a3bb7883
diff --git a/skyvern/services/task_v2_service.py b/skyvern/services/task_v2_service.py
index 06367f927..aeea2e463 100644
--- a/skyvern/services/task_v2_service.py
+++ b/skyvern/services/task_v2_service.py
@@ -166,7 +166,7 @@ async def initialize_task_v2(
) -> TaskV2:
task_v2 = await app.DATABASE.create_task_v2(
prompt=user_prompt,
- url=user_url,
+ url=user_url if user_url else None,
organization_id=organization.organization_id,
totp_verification_url=totp_verification_url,
totp_identifier=totp_identifier,