diff --git a/packages/server/src/api/controllers/automation.ts b/packages/server/src/api/controllers/automation.ts index b19218647b..d8bc9d6b21 100644 --- a/packages/server/src/api/controllers/automation.ts +++ b/packages/server/src/api/controllers/automation.ts @@ -76,16 +76,8 @@ export async function update(ctx: UserCtx) { } export async function fetch(ctx: UserCtx) { - const query: { enrich?: string } = ctx.request.query || {} - const enrich = query.enrich === "true" - const automations = await sdk.automations.fetch() ctx.body = { automations } - if (enrich) { - ctx.body.builderData = await sdk.automations.utils.getBuilderData( - automations - ) - } } export async function find(ctx: UserCtx) { diff --git a/packages/types/src/api/web/automation.ts b/packages/types/src/api/web/automation.ts index 6c810d5e78..06080fc667 100644 --- a/packages/types/src/api/web/automation.ts +++ b/packages/types/src/api/web/automation.ts @@ -3,22 +3,6 @@ import { Automation } from "../../documents" export interface DeleteAutomationResponse extends DocumentDestroyResponse {} -export interface AutomationBuilderData { - displayName: string - triggerInfo?: { - type: string - table: { - id: string - name: string - } - rowAction: { - id: string - name: string - } - } -} - export interface FetchAutomationResponse { automations: Automation[] - builderData?: Record // The key will be the automationId }