From 22482084d1699fe63edf57a82bfca8fde5fe7ecc Mon Sep 17 00:00:00 2001 From: Snazzah Date: Thu, 5 Sep 2024 12:51:53 -0500 Subject: [PATCH] fix: fix fastify contructor --- src/servers/fastify.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/servers/fastify.ts b/src/servers/fastify.ts index 37a41405..52f9665b 100644 --- a/src/servers/fastify.ts +++ b/src/servers/fastify.ts @@ -16,10 +16,9 @@ export class FastifyServer extends Server { super(opts); try { const fastify = require('fastify'); - const symbols = require('fastify/lib/symbols'); if (!app) { app = fastify.default(); - } else if (!(symbols.kState in app)) { + } else if (!('initialConfig' in app)) { app = fastify.default(app); } } catch (e) {