fix None string for webhook url and totp url (#1002)

This commit is contained in:
Shuchang Zheng
2024-10-18 10:56:00 -07:00
committed by GitHub
parent 4b7a4edff2
commit c65795711a

View File

@@ -187,8 +187,8 @@ class ForgeAgent:
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,