Skip to content
Merged
Prev Previous commit
Next Next commit
fix(schedules): convert dynamic import of getWorkflowById to static i…
…mport
  • Loading branch information
waleedlatif1 committed Apr 9, 2026
commit 992935f96d8e269f27f462bfaf9d01eb14727277
2 changes: 1 addition & 1 deletion apps/sim/app/api/schedules/execute/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { createBullMQJobData, isBullMQEnabled } from '@/lib/core/bullmq'
import { generateRequestId } from '@/lib/core/utils/request'
import { generateId } from '@/lib/core/utils/uuid'
import { enqueueWorkspaceDispatch } from '@/lib/core/workspace-dispatch'
import { getWorkflowById } from '@/lib/workflows/utils'
import {
executeJobInline,
executeScheduleJob,
Expand Down Expand Up @@ -115,7 +116,6 @@ export async function GET(request: NextRequest) {
}

try {
const { getWorkflowById } = await import('@/lib/workflows/utils')
const resolvedWorkflow = schedule.workflowId
? await getWorkflowById(schedule.workflowId)
: null
Expand Down