diff --git a/src/Infrastructure/Http/Bootstrap/FastifyAdapterFactory.ts b/src/Infrastructure/Http/Bootstrap/FastifyAdapterFactory.ts index 75ff4a3..f9b427a 100644 --- a/src/Infrastructure/Http/Bootstrap/FastifyAdapterFactory.ts +++ b/src/Infrastructure/Http/Bootstrap/FastifyAdapterFactory.ts @@ -58,7 +58,7 @@ export interface FAdapterFactoryOptions { export class FastifyAdapterFactory { public static async create(options: FAdapterFactoryOptions): Promise { options.adapter.pluginTimeout = options.adapter.pluginTimeout ?? 20000; - const a = new FastifyAdapter(options.adapter); + const a = new FastifyAdapter(options.adapter as any); const errorHandler = this.createErrorHandler(options.errorCatcher); a.setErrorHandler(errorHandler);