add configuration module

This commit is contained in:
Gsk54
2023-01-25 15:16:13 +01:00
parent 9997b7b6a1
commit 4c8084e37a
59 changed files with 3138 additions and 123 deletions

View File

@@ -0,0 +1,14 @@
import { Injectable, ValidationPipe } from '@nestjs/common';
import { RpcException } from '@nestjs/microservices';
@Injectable()
export class RpcValidationPipe extends ValidationPipe {
createExceptionFactory() {
return (validationErrors = []) => {
return new RpcException({
code: 3,
message: this.flattenValidationErrors(validationErrors),
});
};
}
}