Skip to content

Commit 19d05b5

Browse files
authored
docs: update await fastify.register docs (fastify#4546)
1 parent dcfd992 commit 19d05b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Guides/Migration-Guide-V4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ As a result, if you specify an `onRoute` hook in a plugin you should now either:
121121

122122
Into this:
123123
```js
124-
await fastify.register((instance, opts) => {
124+
await fastify.register((instance, opts, done) => {
125125
instance.addHook('onRoute', (routeOptions) => {
126126
const { path, method } = routeOptions;
127127
console.log({ path, method });

0 commit comments

Comments
 (0)