mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-14 17:09:08 +00:00
FEAT: Pipeline Version 2
This commit is contained in:
@@ -96,13 +96,15 @@ export class ConnectionTestService {
|
||||
plugin,
|
||||
}),
|
||||
).catch(async (e) => {
|
||||
await this.connectionsService.deleteConnection({
|
||||
body: { id: connection_id },
|
||||
metadata,
|
||||
});
|
||||
if (!body.connection_id) {
|
||||
await this.connectionsService.deleteConnection({
|
||||
body: { id: connection_id },
|
||||
metadata,
|
||||
});
|
||||
}
|
||||
throw e;
|
||||
});
|
||||
if (!operation_result) {
|
||||
if (!operation_result && !body.connection_id) {
|
||||
await this.connectionsService.deleteConnection({
|
||||
body: { id: connection_id },
|
||||
metadata,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ApiProperty, ApiPropertyOptional, OmitType } from '@nestjs/swagger';
|
||||
import { IsString, IsOptional, IsNumber, Max } from 'class-validator';
|
||||
import { IsString, IsOptional } from 'class-validator';
|
||||
import { DatabaseConnectionPropertiesDto } from 'src/modules/connection/dtos/connection';
|
||||
import { CreateConnectionDto } from 'src/modules/connection/dtos/connection';
|
||||
export class ColumnDto {
|
||||
@@ -29,8 +29,6 @@ export class ConnectionTestPingReq {
|
||||
host: string;
|
||||
|
||||
@ApiPropertyOptional()
|
||||
@IsNumber()
|
||||
@Max(65535)
|
||||
@IsOptional()
|
||||
port: number;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user