diff --git a/packages/server/src/tests/utilities/structures.ts b/packages/server/src/tests/utilities/structures.ts index f99d961ae6..fa91c7ca0f 100644 --- a/packages/server/src/tests/utilities/structures.ts +++ b/packages/server/src/tests/utilities/structures.ts @@ -217,10 +217,8 @@ export function basicAutomation(opts?: DeepPartial): Automation { icon: "test", description: "test", type: AutomationStepType.TRIGGER, + inputs: {}, id: "test", - inputs: { - fields: {}, - }, schema: { inputs: { properties: {}, diff --git a/packages/types/src/documents/app/automation/schema.ts b/packages/types/src/documents/app/automation/schema.ts index 66a6f508fe..820858b48c 100644 --- a/packages/types/src/documents/app/automation/schema.ts +++ b/packages/types/src/documents/app/automation/schema.ts @@ -331,7 +331,7 @@ export type AutomationTriggerDefinition = Omit< export type AutomationTriggerInputs = T extends AutomationTriggerStepId.APP - ? void + ? void | Record : T extends AutomationTriggerStepId.CRON ? CronTriggerInputs : T extends AutomationTriggerStepId.ROW_ACTION