Commit dd67713 1 parent c657957 commit dd67713 Copy full SHA for dd67713
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -184,11 +184,13 @@ async def create_task_and_step_from_block(
184
184
return task , step
185
185
186
186
async def create_task (self , task_request : TaskRequest , organization_id : str | None = None ) -> Task :
187
+ webhook_callback_url = str (task_request .webhook_callback_url ) if task_request .webhook_callback_url else None
188
+ totp_verification_url = str (task_request .totp_verification_url ) if task_request .totp_verification_url else None
187
189
task = await app .DATABASE .create_task (
188
190
url = str (task_request .url ),
189
191
title = task_request .title ,
190
- webhook_callback_url = str ( task_request . webhook_callback_url ) if task_request . webhook_callback_url else None ,
191
- totp_verification_url = str ( task_request . totp_verification_url ) if task_request . totp_verification_url else None ,
192
+ webhook_callback_url = webhook_callback_url ,
193
+ totp_verification_url = totp_verification_url ,
192
194
totp_identifier = task_request .totp_identifier ,
193
195
navigation_goal = task_request .navigation_goal ,
194
196
data_extraction_goal = task_request .data_extraction_goal ,
You can’t perform that action at this time.
0 commit comments