1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

Add snippet context before executing automations

This commit is contained in:
Andrew Kingston 2024-03-12 21:40:48 +00:00
parent 28d938ba3e
commit 3b54daf2c8

View file

@ -129,7 +129,10 @@ export async function doInAutomationContext<T>(params: {
appId: params.appId,
automationId: params.automationId,
},
params.task
async () => {
await ensureSnippetContext()
return await params.task()
}
)
}