fixed merge conflicts

This commit is contained in:
rodrigo.zamboni
2022-03-29 15:22:42 -03:00
3 changed files with 11 additions and 4 deletions
+8 -1
View File
@@ -5,7 +5,14 @@ import { writeFileSync } from 'fs';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create(AppModule, {
cors: {
origin: '*',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
preflightContinue: false,
optionsSuccessStatus: 204,
},
});
const config = new DocumentBuilder()
.setTitle('Maestro Grpc Documentation')
+1 -1
View File
@@ -42,7 +42,7 @@ export class InputsController {
@Get()
async findAll(@Body() body) {
console.log(process.env.DEV_URL + `/input`, 'ON FIND ALL ROUTE');
console.log(`/input`, 'ON FIND ALL ROUTE');
const inputService = new InputsService(this.inputsClientService);
+2 -2
View File
@@ -20,9 +20,9 @@ export class InputsService {
}
}
async findAll(info: Info) {
async findAll(body) {
try {
const findAllInputResponse = await this.inputClient.findAll(info);
const findAllInputResponse = await this.inputClient.findAll(body);
return findAllInputResponse;
} catch (err) {