mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-29 21:19:08 +00:00
FIX: added reference columns on get table metadata connection test
This commit is contained in:
@@ -13,6 +13,8 @@ export class TableMetadataDto {
|
||||
table_name: string;
|
||||
@ApiProperty({ type: [ColumnDto] })
|
||||
columns: ColumnDto[];
|
||||
@ApiProperty({ type: [ColumnDto] })
|
||||
references: ColumnDto[];
|
||||
}
|
||||
|
||||
export class ConnectionTestPingReq {
|
||||
@@ -118,6 +120,8 @@ export class GetTableMetadataReq {
|
||||
}
|
||||
|
||||
export class GetTableMetadataRes {
|
||||
@ApiProperty()
|
||||
operation_result: boolean;
|
||||
@ApiProperty({ type: [TableMetadataDto] })
|
||||
tables_metadata: TableMetadataDto[];
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ export class InputsService {
|
||||
if (data.credentials) data.credentials = JSON.stringify(data.credentials);
|
||||
|
||||
const input = await lastValueFrom(
|
||||
this.inputWriteService.InputCreate(data),
|
||||
this.inputWriteService.InputCreate({ info, input: data }),
|
||||
);
|
||||
// .catch((err: { details: string }) => {
|
||||
// if (err.details === 'Item Not found!') {
|
||||
|
||||
Reference in New Issue
Block a user