From 9bd22bbcdf59d280f656264c3a6e7614f5d22945 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 22 Jul 2024 14:45:58 +0200 Subject: [PATCH] Fix after merge --- .../server/src/sdk/app/automations/crud.ts | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/packages/server/src/sdk/app/automations/crud.ts b/packages/server/src/sdk/app/automations/crud.ts index 9765ecd2f2..f3dd3e7a3c 100644 --- a/packages/server/src/sdk/app/automations/crud.ts +++ b/packages/server/src/sdk/app/automations/crud.ts @@ -1,10 +1,4 @@ -import { - Automation, - AutomationBuilderData, - AutomationTriggerStepId, - Webhook, - WebhookActionType, -} from "@budibase/types" +import { Automation, Webhook, WebhookActionType } from "@budibase/types" import { generateAutomationID, getAutomationParams } from "../../../db/utils" import { deleteEntityMetadata } from "../../../utilities" import { MetadataTypes } from "../../../constants" @@ -288,27 +282,3 @@ function guardInvalidUpdatesAndThrow( }) } } - -export async function getBuilderData( - automations: Automation[] -): Promise> { - const result: Record = {} - for (const automation of automations) { - const isRowAction = - automation.definition.trigger.stepId === - AutomationTriggerStepId.ROW_ACTION - if (!isRowAction) { - result[automation._id!] = { displayName: automation.name } - continue - } - - result[automation._id!] = { - displayName: `TODO: ${automation.name}`, - triggerInfo: { - title: "Automation trigger", - description: "This trigger is tied to the row action TODO on your TODO", - }, - } - } - return result -}