From 0a0ecb20bb94e4878f19a5177830e7267c1ca46d Mon Sep 17 00:00:00 2001 From: Victor Radael Date: Fri, 12 Aug 2022 16:35:36 -0300 Subject: [PATCH] FIX: Swagger --- src/modules/connection/dtos/connection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/connection/dtos/connection.ts b/src/modules/connection/dtos/connection.ts index a1fa045..6fb3d6f 100644 --- a/src/modules/connection/dtos/connection.ts +++ b/src/modules/connection/dtos/connection.ts @@ -52,7 +52,7 @@ export class ConnectionDto implements Connection { network_config_id: string | null; @ApiProperty() - properties: any | DatabaseConnectionPropertiesDto; + properties: DatabaseConnectionPropertiesDto | any; // ---Information sent by the frontend (Heirs of Connector)--- // @@ -130,7 +130,7 @@ export class UpdateConnectionDto extends PickType(ConnectionDto, [ ]) {} export class ConnectionsRes implements GetAllConnectionResponse { - @ApiProperty() + @ApiProperty({ type: [ConnectionToCatalogDto] }) connections: ConnectionToCatalogDto[]; @ApiProperty()