Skip to content

Commit 23e192b

Browse files
committed
fix: actions must be async
1 parent 0d7ce14 commit 23e192b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cli/Commands/Generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export async function generate(options: Generate = {}) {
112112
import { fhubClient } from '../client'
113113
import { Actions } from 'fhub'
114114
115-
export function action(parameters${isTypeScript ? `: Actions.${namespaceName}.${functionName}.ParametersType` : ''}): ${isTypeScript ? `Promise<Actions.${namespaceName}.${functionName}.ReturnType>` : ''} {
115+
export async function action(parameters${isTypeScript ? `: Actions.${namespaceName}.${functionName}.ParametersType` : ''}): ${isTypeScript ? `Promise<Actions.${namespaceName}.${functionName}.ReturnType>` : ''} {
116116
return Actions.${namespaceName}.${functionName}(fhubClient, parameters)
117117
}
118118
`)

0 commit comments

Comments
 (0)