Skip to content

Commit 2ae1126

Browse files
authored
fix: filter excel steps to nullify (#1357)
1 parent afbd7d6 commit 2ae1126

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/backend/src/graphql/mutations/update-flow-transfer-status.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ const updateFlowTransferStatus: MutationResolvers['updateFlowTransferStatus'] =
103103
// nullify connections for M365-excel
104104
// excel connections cannot be shared; the new owner should use their own connection
105105
const excelStepIds = flow.steps
106-
.filter((step) => step.appKey === 'm365-excel')
106+
.filter(
107+
(step) => step.appKey === 'm365-excel' && step.connectionId != null,
108+
)
107109
.map((step) => step.id)
108110
const numExcelNullified = await Step.query(trx)
109111
.patch({ connection: null, connectionId: null, status: 'incomplete' })

0 commit comments

Comments
 (0)