fix(blocks): add missing user_id parameter to video blocks

Add required user_id parameter to TranscribeVideoBlock and
EditVideoByTextBlock run methods, and pass it to store_media_file()
calls to fix block test failures.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Nicholas Tindle <ntindle@users.noreply.github.com>
This commit is contained in:
claude[bot]
2025-12-26 16:30:32 +00:00
parent c828b4b70b
commit 804e88e4ba
2 changed files with 4 additions and 0 deletions

View File

@@ -136,12 +136,14 @@ class EditVideoByTextBlock(Block):
*,
credentials: APIKeyCredentials,
graph_exec_id: str,
user_id: str,
**kwargs,
) -> BlockOutput:
try:
local_path = await store_media_file(
graph_exec_id=graph_exec_id,
file=input_data.video_in,
user_id=user_id,
return_content=False,
)
abs_path = get_exec_file_path(graph_exec_id, local_path)

View File

@@ -116,12 +116,14 @@ class TranscribeVideoBlock(Block):
*,
credentials: APIKeyCredentials,
graph_exec_id: str,
user_id: str,
**kwargs,
) -> BlockOutput:
try:
local_path = await store_media_file(
graph_exec_id=graph_exec_id,
file=input_data.video_in,
user_id=user_id,
return_content=False,
)
abs_path = get_exec_file_path(graph_exec_id, local_path)