Skip to content

Commit 561be5b

Browse files
committed
test: red proof for #9144 (do not merge)
1 parent 9003bf0 commit 561be5b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/sim/lib/logs/execution/logger.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,9 @@ async function assertExecutionWorkspaceExists(
315315
executionId: string,
316316
workspaceId: string | null | undefined
317317
): Promise<void> {
318-
if (!workspaceId) return
319-
if (!(await workspaceRowExists(client, workspaceId))) {
320-
throw new ExecutionScopeDeletedError(executionId, 'workspace')
321-
}
318+
void client
319+
void executionId
320+
void workspaceId
322321
}
323322

324323
async function workspaceRowExists(

‎apps/sim/lib/logs/execution/logging-session.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,7 @@ export class LoggingSession {
884884
workspaceId: string
885885
): Promise<ExecutionScopeDeletedError | null> {
886886
if (getPostgresErrorCode(error) !== FOREIGN_KEY_VIOLATION) return null
887+
if (error) return null
887888
try {
888889
const scope = await executionLogger.findDeletedExecutionScope({
889890
workspaceId,

0 commit comments

Comments
 (0)