Skip to content

Commit 7c80b26

Browse files
committed
chore(webhooks): remove implementation-detail comments
1 parent 01b2a2a commit 7c80b26

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

apps/sim/app/api/webhooks/trigger/[path]/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export async function POST(
8080
}
8181

8282
// Parallelize auth verification with preprocessing — they are independent
83-
// checkWebhookPreprocessing has its own try/catch and always returns WebhookPreprocessingResult
8483
const [authError, preprocessResult] = await Promise.all([
8584
verifyProviderAuth(foundWebhook, foundWorkflow, request, rawBody, requestId),
8685
checkWebhookPreprocessing(foundWorkflow, foundWebhook, requestId),

apps/sim/background/webhook-execution.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export async function executeWebhookJob(payload: WebhookExecutionPayload) {
140140
}
141141

142142
/**
143-
* Resolve the account userId for a credential (deferred from API route to background job)
143+
* Resolve the account userId for a credential
144144
*/
145145
async function resolveCredentialAccountUserId(credentialId: string): Promise<string | undefined> {
146146
const resolved = await resolveOAuthAccountId(credentialId)
@@ -167,8 +167,7 @@ async function executeWebhookJobInternal(
167167
requestId
168168
)
169169

170-
// Use preprocessExecution to resolve workflow record, billing actor, subscription, and timeout
171-
// Rate limits and deployment checks were already done in the API route
170+
// Resolve workflow record, billing actor, subscription, and timeout
172171
const preprocessResult = await preprocessExecution({
173172
workflowId: payload.workflowId,
174173
userId: payload.userId,

apps/sim/lib/webhooks/processor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,6 @@ export async function queueWebhookExecution(
10861086
}
10871087
}
10881088

1089-
// actorUserId is pre-resolved by checkWebhookPreprocessing and threaded via options
10901089
const actorUserId = options.actorUserId
10911090
if (!actorUserId) {
10921091
logger.error(`[${options.requestId}] No actorUserId provided for webhook ${foundWebhook.id}`)

0 commit comments

Comments
 (0)