Skip to content

Commit e92a009

Browse files
emir-karabegicecrasher321Vikhyath Mondreti
authored andcommitted
merged improvement/connection into staging (#604)
* merged improvement/connection into staging * fix: merge conflicts and improved block path calculation * fix: removed migration * fix: removed duplicate call * fix: resolver and merge conflicts * fix: knowledge base folder * fix: settings modal * fix: typeform block * fix: parallel handler * fix: stores index * fix: tests * fix: tag-dropdown * improvement: start block input and tag dropdown * fix block id resolution + missing bracket * fix lint * fix test * works * fix * fix lint * Revert "fix lint" This reverts commit 433e2f9. --------- Co-authored-by: Vikhyath Mondreti <vikhyathvikku@gmail.com> Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-MacBook-Air.local>
1 parent c635b19 commit e92a009

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

apps/sim/app/api/workflows/[id]/deploy/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export async function POST(request: NextRequest, { params }: { params: Promise<{
139139
return createErrorResponse(validation.error.message, validation.error.status)
140140
}
141141

142-
// Get the workflow to find the user (removed deprecated state column)
142+
// Get the workflow to find the user
143143
const workflowData = await db
144144
.select({
145145
userId: workflow.userId,

apps/sim/executor/handlers/workflow/workflow-handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,15 @@ export class WorkflowBlockHandler implements BlockHandler {
159159

160160
logger.info(`Loaded child workflow: ${workflowData.name} (${workflowId})`)
161161

162-
// Extract the workflow state (API returns normalized data in state field)
162+
// Extract the workflow state
163163
const workflowState = workflowData.state
164164

165165
if (!workflowState || !workflowState.blocks) {
166166
logger.error(`Child workflow ${workflowId} has invalid state`)
167167
return null
168168
}
169169

170-
// Use blocks directly since API returns data from normalized tables
170+
// Use blocks directly since DB format should match UI format
171171
const serializedWorkflow = this.serializer.serializeWorkflow(
172172
workflowState.blocks,
173173
workflowState.edges || [],

apps/sim/executor/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,13 @@ export class Executor {
649649
if (this.workflowInput && typeof this.workflowInput === 'object') {
650650
// Check if this is a chat workflow input (has both input and conversationId)
651651
if (
652+
<<<<<<< HEAD
652653
Object.hasOwn(this.workflowInput, 'input') &&
653654
Object.hasOwn(this.workflowInput, 'conversationId')
655+
=======
656+
Object.prototype.hasOwnProperty.call(this.workflowInput, 'input') &&
657+
Object.prototype.hasOwnProperty.call(this.workflowInput, 'conversationId')
658+
>>>>>>> 34b590a1 (merged improvement/connection into staging (#604))
654659
) {
655660
// Chat workflow: extract input and conversationId to root level
656661
const starterOutput = {

0 commit comments

Comments
 (0)