Skip to content

Commit 2bf1feb

Browse files
committed
remove dead code
1 parent 9a6886c commit 2bf1feb

File tree

5 files changed

+3
-325
lines changed

5 files changed

+3
-325
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ async function enqueueDirectWorkflowExecution(
329329
* Supports both SSE streaming (for interactive/manual runs) and direct JSON responses (for background jobs).
330330
*/
331331
export async function POST(req: NextRequest, { params }: { params: Promise<{ id: string }> }) {
332-
if (!hasExternalApiCredentials(req.headers)) {
332+
const isSessionRequest = req.headers.has('cookie') && !hasExternalApiCredentials(req.headers)
333+
if (isSessionRequest) {
333334
return handleExecutePost(req, params)
334335
}
335336

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export { BullMQJobQueue } from './bullmq'
22
export { DatabaseJobQueue } from './database'
3-
export { RedisJobQueue } from './redis'
43
export { TriggerDevJobQueue } from './trigger-dev'

apps/sim/lib/core/async-jobs/backends/redis.test.ts

Lines changed: 0 additions & 176 deletions
This file was deleted.

apps/sim/lib/core/async-jobs/backends/redis.ts

Lines changed: 0 additions & 146 deletions
This file was deleted.

apps/sim/lib/core/async-jobs/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ export interface JobQueueBackend {
9999
markJobFailed(jobId: string, error: string): Promise<void>
100100
}
101101

102-
export type AsyncBackendType = 'trigger-dev' | 'bullmq' | 'redis' | 'database'
102+
export type AsyncBackendType = 'trigger-dev' | 'bullmq' | 'database'

0 commit comments

Comments
 (0)