mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-09 15:59:09 +00:00
Adding pre-commit
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
export class CreateTransformationDto {
|
||||
inputSource:string;
|
||||
|
||||
|
||||
table:string;
|
||||
|
||||
|
||||
type:string;
|
||||
|
||||
|
||||
params:string;
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
export class Transformation {
|
||||
|
||||
id:string;
|
||||
|
||||
|
||||
inputSource:string;
|
||||
|
||||
|
||||
table:string;
|
||||
|
||||
|
||||
type:string;
|
||||
|
||||
|
||||
params:string;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -47,4 +47,3 @@ message CreateTransformationRequest {
|
||||
message ListResponse {
|
||||
repeated Transformation transformations = 2;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import { GrpcClientConfiguration } from './config/grpc-client';
|
||||
|
||||
@Controller('transformation')
|
||||
export class TransformationsController implements OnModuleInit {
|
||||
|
||||
|
||||
@Client(GrpcClientConfiguration)
|
||||
private transformationServiceClient: ClientGrpc;
|
||||
|
||||
@@ -21,7 +21,7 @@ export class TransformationsController implements OnModuleInit {
|
||||
|
||||
@Post()
|
||||
create(@Payload() createTransformationDto: CreateTransformationDto[]) {
|
||||
|
||||
|
||||
return createTransformationDto.map( transf => this.transformationService.create(transf))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user