From dbcedad039989bae921545c419cf7f11caf9d00e Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Tue, 4 Mar 2025 16:07:33 -0500 Subject: [PATCH] chore: revert fastify change --- api/src/unraid-api/main.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/api/src/unraid-api/main.ts b/api/src/unraid-api/main.ts index 948421b53..bc8588cb1 100644 --- a/api/src/unraid-api/main.ts +++ b/api/src/unraid-api/main.ts @@ -2,13 +2,9 @@ import type { NestFastifyApplication } from '@nestjs/platform-fastify'; import { NestFactory } from '@nestjs/core'; import { FastifyAdapter } from '@nestjs/platform-fastify'; - - import fastifyCookie from '@fastify/cookie'; import { LoggerErrorInterceptor, Logger as PinoLogger } from 'nestjs-pino'; - - import { apiLogger } from '@app/core/log.js'; import { LOG_LEVEL, PORT } from '@app/environment.js'; import { AppModule } from '@app/unraid-api/app/app.module.js'; @@ -17,10 +13,6 @@ import { CookieService } from '@app/unraid-api/auth/cookie.service.js'; import { GraphQLExceptionsFilter } from '@app/unraid-api/exceptions/graphql-exceptions.filter.js'; import { HttpExceptionFilter } from '@app/unraid-api/exceptions/http-exceptions.filter.js'; - - - - export async function bootstrapNestServer(): Promise { apiLogger.debug('Creating Nest Server'); @@ -31,7 +23,7 @@ export async function bootstrapNestServer(): Promise { const server = app.getHttpAdapter().getInstance(); - await app.register(fastifyCookie as unknown as Parameters[0]); // parse cookies before cors + await app.register(fastifyCookie); // parse cookies before cors const cookieService = app.get(CookieService); app.enableCors(configureFastifyCors(cookieService)); @@ -66,4 +58,4 @@ export async function bootstrapNestServer(): Promise { apiLogger.info('Nest Server is now listening'); return app; -} \ No newline at end of file +}