This commit is contained in:
Adria Navarro 2024-07-22 14:39:26 +02:00
parent cec24fb40d
commit 286883da14
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ export async function update(ctx: UserCtx) {
}
export async function fetch(ctx: UserCtx<void, FetchAutomationResponse>) {
const query = ctx.request.query || {}
const enrich = query["enrich"] === "true"
const query: { enrich?: string } = ctx.request.query || {}
const enrich = query.enrich === "true"
const automations = await sdk.automations.fetch()
ctx.body = { automations }