Types
This commit is contained in:
parent
cec24fb40d
commit
286883da14
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue