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
1 changed files with 4 additions and 1 deletions

View File

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