From 11b2e40836a77a8d2f76a3945a35984c37734a4b Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 23 Oct 2024 16:37:55 +0200 Subject: [PATCH] Remove --- .../server/src/api/controllers/automation.ts | 8 -------- packages/types/src/api/web/automation.ts | 16 ---------------- 2 files changed, 24 deletions(-) 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 }