diff --git a/src/Cli/Commands/Generate.ts b/src/Cli/Commands/Generate.ts index 0e6cfef..de7d523 100644 --- a/src/Cli/Commands/Generate.ts +++ b/src/Cli/Commands/Generate.ts @@ -112,7 +112,7 @@ export async function generate(options: Generate = {}) { import { fhubClient } from '../client' import { Actions } from 'fhub' - export function action(parameters${isTypeScript ? `: Actions.${namespaceName}.${functionName}.ParametersType` : ''}): ${isTypeScript ? `Promise` : ''} { + export async function action(parameters${isTypeScript ? `: Actions.${namespaceName}.${functionName}.ParametersType` : ''}): ${isTypeScript ? `Promise` : ''} { return Actions.${namespaceName}.${functionName}(fhubClient, parameters) } `)