Skip to content

Commit 623e27d

Browse files
authored
fix(fastify): methods comparison
1 parent 12b0892 commit 623e27d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/platform-fastify/adapters/fastify-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ export class FastifyAdapter<
762762
handler: handlerRef,
763763
};
764764

765-
if (this.instance.supportedMethods.indexOf(routerMethodKey) > -1) {
765+
if (this.instance.supportedMethods.indexOf(routerMethodKey) === -1) {
766766
this.instance.addHttpMethod(routerMethodKey, { hasBody: true });
767767
}
768768

0 commit comments

Comments
 (0)