Skip to content

Commit 0c113ec

Browse files
author
waleed
committed
remove isAsync
1 parent b1c8235 commit 0c113ec

File tree

7 files changed

+4
-13
lines changed

7 files changed

+4
-13
lines changed

apps/sim/app/api/files/upload/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ export async function POST(request: NextRequest) {
109109
buffer,
110110
originalName,
111111
file.type,
112-
false, // isAsync
113112
session.user.id // userId available from session
114113
)
115114

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,6 @@ export async function POST(
636636
fieldValue,
637637
executionContext,
638638
requestId,
639-
isAsync,
640639
authenticatedUserId
641640
)
642641

apps/sim/app/workspace/[workspaceId]/knowledge/hooks/use-knowledge-upload.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,13 @@ export function useKnowledgeUpload(options: UseKnowledgeUploadOptions = {}) {
356356
const timeoutId = setTimeout(() => controller.abort(), timeoutMs)
357357

358358
try {
359-
// For large files (>50MB), use multipart upload (server-orchestrated)
359+
// For large files (>50MB), use multipart upload
360360
if (file.size > UPLOAD_CONFIG.LARGE_FILE_THRESHOLD) {
361361
presignedData = presignedOverride ?? (await getPresignedData(file, timeoutMs, controller))
362362
return await uploadFileInChunks(file, presignedData, timeoutMs, fileIndex)
363363
}
364364

365-
// For all other files, use server-side upload (no presigned URLs)
366-
logger.info(`Using server-side upload for ${file.name}`)
365+
// For all other files, use server-side upload
367366
return await uploadFileThroughAPI(file, timeoutMs)
368367
} finally {
369368
clearTimeout(timeoutId)
@@ -712,7 +711,7 @@ export function useKnowledgeUpload(options: UseKnowledgeUploadOptions = {}) {
712711
}
713712

714713
/**
715-
* Fallback upload through API (server-side)
714+
* Fallback upload through API
716715
*/
717716
const uploadFileThroughAPI = async (file: File, timeoutMs: number): Promise<UploadedFile> => {
718717
const controller = new AbortController()

apps/sim/background/webhook-execution.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ async function executeWebhookJobInternal(
431431
fieldValue,
432432
executionContext,
433433
requestId,
434-
false,
435434
payload.userId
436435
)
437436

apps/sim/lib/execution/files.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export async function processExecutionFile(
1414
file: { type: string; data: string; name: string; mime?: string },
1515
executionContext: { workspaceId: string; workflowId: string; executionId: string },
1616
requestId: string,
17-
isAsync?: boolean,
1817
userId?: string
1918
): Promise<UserFile | null> {
2019
if (file.type === 'file' && file.data && file.name) {
@@ -50,7 +49,6 @@ export async function processExecutionFile(
5049
buffer,
5150
file.name,
5251
mimeType || file.mime || 'application/octet-stream',
53-
isAsync,
5452
userId
5553
)
5654

@@ -81,7 +79,6 @@ export async function processExecutionFiles(
8179
fieldValue: any,
8280
executionContext: { workspaceId: string; workflowId: string; executionId: string },
8381
requestId: string,
84-
isAsync?: boolean,
8582
userId?: string
8683
): Promise<UserFile[]> {
8784
if (!fieldValue || typeof fieldValue !== 'object') {
@@ -94,7 +91,7 @@ export async function processExecutionFiles(
9491

9592
for (const file of files) {
9693
try {
97-
const userFile = await processExecutionFile(file, fullContext, requestId, isAsync, userId)
94+
const userFile = await processExecutionFile(file, fullContext, requestId, userId)
9895

9996
if (userFile) {
10097
uploadedFiles.push(userFile)

apps/sim/lib/uploads/contexts/chat/chat-file-manager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export async function processChatFiles(
5757
transformedFiles,
5858
executionContext,
5959
requestId,
60-
false,
6160
userId
6261
)
6362

apps/sim/lib/uploads/contexts/execution/execution-file-manager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export async function uploadExecutionFile(
1717
fileBuffer: Buffer,
1818
fileName: string,
1919
contentType: string,
20-
isAsync?: boolean,
2120
userId?: string
2221
): Promise<UserFile> {
2322
logger.info(`Uploading execution file: ${fileName} for execution ${context.executionId}`)

0 commit comments

Comments
 (0)