Skip to content

Commit 2eeacae

Browse files
committed
refactor, set default metadata in processAction
1 parent c096627 commit 2eeacae

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

packages/backend/src/controllers/webhooks/handler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ export default async (request: IRequest, response: Response) => {
165165
flowId,
166166
executionId,
167167
stepId: nextStep.id,
168-
metadata: {},
169168
}
170169

171170
await enqueueActionJob({

packages/backend/src/services/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const processAction = async (options: ProcessActionOptions) => {
8888
executionId,
8989
jobId,
9090
testRun = false,
91-
metadata,
91+
metadata = {},
9292
} = options
9393

9494
const step = await Step.query().findById(stepId).throwIfNotFound()

packages/backend/src/workers/trigger.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export const worker = new WorkerPro(
3535
flowId,
3636
executionId,
3737
stepId: nextStep.id,
38-
metadata: {},
3938
}
4039

4140
try {

0 commit comments

Comments
 (0)