feat(nodes): provide board_id in image creation

This commit is contained in:
psychedelicious 2023-09-22 21:59:29 +10:00 committed by Kent Keirsey
parent 88c8cb61f0
commit 60b3c6a201

View File

@ -993,6 +993,7 @@ class SaveImageInvocation(BaseInvocation):
image=image,
image_origin=ResourceOrigin.INTERNAL,
image_category=ImageCategory.GENERAL,
board_id=self.board.board_id if self.board else None,
node_id=self.id,
session_id=context.graph_execution_state_id,
is_intermediate=self.is_intermediate,
@ -1000,12 +1001,6 @@ class SaveImageInvocation(BaseInvocation):
workflow=self.workflow,
)
if self.board:
context.services.board_images.add_image_to_board(
board_id=self.board.board_id,
image_name=image_dto.image_name,
)
return ImageOutput(
image=ImageField(image_name=image_dto.image_name),
width=image_dto.width,