Store empty user_url as None in initialize_task_v2 (#3793)

This commit is contained in:
Stanislav Novosad
2025-10-22 16:47:08 -06:00
committed by GitHub
parent 26a55ebb74
commit 19c4a3bb78

View File

@@ -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,