fix: bug in the content type parser of fastify

This commit is contained in:
mahyargdz
2025-04-22 15:41:56 +03:30
parent 5883890e7f
commit 8598ffe67b
4 changed files with 22 additions and 4 deletions
+9 -1
View File
@@ -50,7 +50,15 @@ import { WalletsModule } from "./modules/wallets/wallets.module";
CacheModule.registerAsync(cacheConfig()),
TypeOrmModule.forRootAsync(databaseConfigs()),
HttpModule.register({ global: true, timeout: 10000, headers: { "Content-Type": "application/json" } }),
FastifyMulterModule,
FastifyMulterModule.register({
limits: {
fileSize: 10 * 1024 * 1024,
fieldNameSize: 200,
fieldSize: 10 * 1024 * 1024,
fields: 10,
parts: 10,
},
}),
AuthModule,
UsersModule,
TicketsModule,