Skip to content

Commit

Permalink
fix: actions must be async
Browse files Browse the repository at this point in the history
  • Loading branch information
dalechyn committed Nov 9, 2024
1 parent 0d7ce14 commit 23e192b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cli/Commands/Generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Actions.${namespaceName}.${functionName}.ReturnType>` : ''} {
export async function action(parameters${isTypeScript ? `: Actions.${namespaceName}.${functionName}.ParametersType` : ''}): ${isTypeScript ? `Promise<Actions.${namespaceName}.${functionName}.ReturnType>` : ''} {
return Actions.${namespaceName}.${functionName}(fhubClient, parameters)
}
`)
Expand Down

0 comments on commit 23e192b

Please sign in to comment.