Adding pre-commit

This commit is contained in:
alexsanderp
2022-02-04 10:03:55 -03:00
parent 7de6d5c14d
commit b8492c6840
46 changed files with 140 additions and 138 deletions
@@ -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))
}