fix(api): resolve NestJS DI + ValidationPipe bugs from type-only imports
- Remove `type` modifier from imports used as DI constructor params across ~235 files (@Injectable, @Controller, @Module, @Catch, @CommandHandler, @QueryHandler, @EventsHandler, @WebSocketGateway). TypeScript emitDecoratorMetadata strips type-only imports, leaving Reflect.metadata with Function placeholder and breaking Nest DI. - Fix controllers: DTOs used with @Body/@Query/@Param must be runtime imports so ValidationPipe can whitelist properties. Previously returned 400 "property X should not exist" on every request. - Register ProjectsModule in AppModule (was defined but never wired). - Add approve()/reject() methods to TransferListingEntity referenced by ModerateTransferListingHandler. - Export BankTransferConfirmedEvent from payments barrel for subscription activation handler. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { McpModule as McpCoreModule, type McpRegistryService } from '@goodgo/mcp-servers';
|
||||
import { McpModule as McpCoreModule, McpRegistryService } from '@goodgo/mcp-servers';
|
||||
import { Module, type OnModuleInit } from '@nestjs/common';
|
||||
import { AuthModule } from '@modules/auth';
|
||||
import { SearchModule, type TypesenseClientService } from '@modules/search';
|
||||
import { type LoggerService } from '@modules/shared';
|
||||
import { SearchModule, TypesenseClientService } from '@modules/search';
|
||||
import { LoggerService } from '@modules/shared';
|
||||
import { McpTransportController } from './presentation/mcp-transport.controller';
|
||||
|
||||
@Module({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SSEServerTransport, type McpRegistryService } from '@goodgo/mcp-servers';
|
||||
import { SSEServerTransport, McpRegistryService } from '@goodgo/mcp-servers';
|
||||
import {
|
||||
Controller,
|
||||
Get,
|
||||
|
||||
Reference in New Issue
Block a user