Skip to content

Commit

Permalink
fix: await generate hook (#2074)
Browse files Browse the repository at this point in the history
* fix

* denoify
  • Loading branch information
watany-dev committed Jan 24, 2024
1 parent 67f9735 commit 5809f75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deno_dist/helper/ssg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,6 @@ export const toSSG: ToSSGInterface = async (app, fs, options) => {
const errorObj = error instanceof Error ? error : new Error(String(error))
result = { success: false, error: errorObj }
}
options?.afterGenerateHook?.(result)
await options?.afterGenerateHook?.(result)
return result
}
2 changes: 1 addition & 1 deletion src/helper/ssg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,6 @@ export const toSSG: ToSSGInterface = async (app, fs, options) => {
const errorObj = error instanceof Error ? error : new Error(String(error))
result = { success: false, error: errorObj }
}
options?.afterGenerateHook?.(result)
await options?.afterGenerateHook?.(result)
return result
}

0 comments on commit 5809f75

Please sign in to comment.