Remove api flag
This commit is contained in:
parent
11b2e40836
commit
e67352d51b
|
@ -82,7 +82,7 @@ const automationActions = store => ({
|
||||||
},
|
},
|
||||||
fetch: async () => {
|
fetch: async () => {
|
||||||
const [automationResponse, definitions] = await Promise.all([
|
const [automationResponse, definitions] = await Promise.all([
|
||||||
API.getAutomations({ enrich: true }),
|
API.getAutomations(),
|
||||||
API.getAutomationDefinitions(),
|
API.getAutomationDefinitions(),
|
||||||
])
|
])
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
|
|
|
@ -26,14 +26,9 @@ export const buildAutomationEndpoints = API => ({
|
||||||
/**
|
/**
|
||||||
* Gets a list of all automations.
|
* Gets a list of all automations.
|
||||||
*/
|
*/
|
||||||
getAutomations: async ({ enrich }) => {
|
getAutomations: async () => {
|
||||||
const params = new URLSearchParams()
|
|
||||||
if (enrich) {
|
|
||||||
params.set("enrich", true)
|
|
||||||
}
|
|
||||||
|
|
||||||
return await API.get({
|
return await API.get({
|
||||||
url: `/api/automations?${params.toString()}`,
|
url: "/api/automations",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue