mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-19 20:19:09 +00:00
Update feature
This commit is contained in:
@@ -15,7 +15,7 @@ import {
|
||||
GetTableMetadataRes,
|
||||
} from './dto/connection-test';
|
||||
import { ConnectionClientService } from '../connection/client.service';
|
||||
import { CreateConnectionDto } from '../connection/dtos/create-connection';
|
||||
import { CreateConnectionDto } from '../connection/dtos/connection';
|
||||
import { RequestUser } from 'src/authentication/user.decorator';
|
||||
|
||||
@Injectable()
|
||||
@@ -60,7 +60,7 @@ export class ConnectionTestService {
|
||||
connectionBody.properties.credentials_type = 'basic_auth';
|
||||
|
||||
const createConnectionBody: CreateConnectionDto = {
|
||||
...connectionBody,
|
||||
...body,
|
||||
};
|
||||
const { connection } = await this.connectionsService.createConnection({
|
||||
body: createConnectionBody,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ApiProperty, ApiPropertyOptional, OmitType } from '@nestjs/swagger';
|
||||
import { IsString, IsOptional } from 'class-validator';
|
||||
import { DatabaseConnectionPropertiesDto } from 'src/modules/connection/dtos/connection';
|
||||
import { CreateConnectionDto } from 'src/modules/connection/dtos/create-connection';
|
||||
import { CreateConnectionDto } from 'src/modules/connection/dtos/connection';
|
||||
export class ColumnDto {
|
||||
@ApiProperty()
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user