From e67352d51bf0f65600964393c6625d3e6eeaee25 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 23 Oct 2024 16:38:07 +0200 Subject: [PATCH] Remove api flag --- packages/builder/src/stores/builder/automations.js | 2 +- packages/frontend-core/src/api/automations.js | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/packages/builder/src/stores/builder/automations.js b/packages/builder/src/stores/builder/automations.js index bb0f5d2085..3ab81ccce6 100644 --- a/packages/builder/src/stores/builder/automations.js +++ b/packages/builder/src/stores/builder/automations.js @@ -82,7 +82,7 @@ const automationActions = store => ({ }, fetch: async () => { const [automationResponse, definitions] = await Promise.all([ - API.getAutomations({ enrich: true }), + API.getAutomations(), API.getAutomationDefinitions(), ]) store.update(state => { diff --git a/packages/frontend-core/src/api/automations.js b/packages/frontend-core/src/api/automations.js index ce5f7d3aba..37a834cf04 100644 --- a/packages/frontend-core/src/api/automations.js +++ b/packages/frontend-core/src/api/automations.js @@ -26,14 +26,9 @@ export const buildAutomationEndpoints = API => ({ /** * Gets a list of all automations. */ - getAutomations: async ({ enrich }) => { - const params = new URLSearchParams() - if (enrich) { - params.set("enrich", true) - } - + getAutomations: async () => { return await API.get({ - url: `/api/automations?${params.toString()}`, + url: "/api/automations", }) },