Remove api flag

This commit is contained in:
Adria Navarro 2024-10-23 16:38:07 +02:00
parent 11b2e40836
commit e67352d51b
2 changed files with 3 additions and 8 deletions

View File

@ -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 => {

View File

@ -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",
})
},