Skip to content

Commit 8ae5f88

Browse files
committed
fix(schedules): convert dynamic import of getWorkflowById to static import
1 parent 174e4dc commit 8ae5f88

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/api/schedules/execute

1 file changed

+1
-1
lines changed

apps/sim/app/api/schedules/execute/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { createBullMQJobData, isBullMQEnabled } from '@/lib/core/bullmq'
88
import { generateRequestId } from '@/lib/core/utils/request'
99
import { generateId } from '@/lib/core/utils/uuid'
1010
import { enqueueWorkspaceDispatch } from '@/lib/core/workspace-dispatch'
11+
import { getWorkflowById } from '@/lib/workflows/utils'
1112
import {
1213
executeJobInline,
1314
executeScheduleJob,
@@ -115,7 +116,6 @@ export async function GET(request: NextRequest) {
115116
}
116117

117118
try {
118-
const { getWorkflowById } = await import('@/lib/workflows/utils')
119119
const resolvedWorkflow = schedule.workflowId
120120
? await getWorkflowById(schedule.workflowId)
121121
: null

0 commit comments

Comments
 (0)