mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-10 09:39:07 +00:00
Update feature
This commit is contained in:
@@ -12,7 +12,6 @@ import {
|
||||
} from '@nestjs/common';
|
||||
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
|
||||
import { ConnectionClientService } from './client.service';
|
||||
import { CreateConnectionDto } from './dtos/create-connection';
|
||||
import { DadosferaLogger } from '@dadosfera/dadosfera-logs';
|
||||
import {
|
||||
Authenticated,
|
||||
@@ -21,8 +20,8 @@ import {
|
||||
import { PERMISSIONS } from 'src/authentication/permissions.enum';
|
||||
import { User } from 'src/authentication/user.decorator';
|
||||
import { ValidationPipe } from '../../pipes/object-validation.pipe';
|
||||
import { UpdateConnectionDto } from './dtos/update-connection';
|
||||
import { identity } from 'rxjs';
|
||||
import { GetConnectionsRes, UpdateConnectionDto } from './dtos/connection';
|
||||
import { CreateConnectionDto } from './dtos/connection';
|
||||
|
||||
@ApiTags('connections')
|
||||
@ApiBearerAuth()
|
||||
@@ -53,12 +52,6 @@ export class ConnectionController {
|
||||
info: { user_id, customer_id, customer_name },
|
||||
});
|
||||
|
||||
delete response.connection.properties;
|
||||
delete response.connection.user_id;
|
||||
delete response.connection.customer_id;
|
||||
delete response.connection.customer_name;
|
||||
delete response.connection.updated_at;
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
@@ -79,12 +72,6 @@ export class ConnectionController {
|
||||
info: { user_id, customer_id, customer_name, language },
|
||||
});
|
||||
|
||||
delete response.connection.properties;
|
||||
delete response.connection.user_id;
|
||||
delete response.connection.customer_id;
|
||||
delete response.connection.customer_name;
|
||||
delete response.connection.updated_at;
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
@@ -100,12 +87,6 @@ export class ConnectionController {
|
||||
info: { user_id, customer_id, customer_name },
|
||||
});
|
||||
|
||||
delete response.connection.properties;
|
||||
delete response.connection.user_id;
|
||||
delete response.connection.customer_id;
|
||||
delete response.connection.customer_name;
|
||||
delete response.connection.updated_at;
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
@@ -115,7 +96,7 @@ export class ConnectionController {
|
||||
@User() user,
|
||||
@Headers('Dadosfera-Lang') language,
|
||||
@Query() queries,
|
||||
) {
|
||||
): Promise<GetConnectionsRes> {
|
||||
this.logger.info('/connections - Get All Connection');
|
||||
|
||||
const { user_id, customer_id, customer_name } = user;
|
||||
@@ -145,11 +126,6 @@ export class ConnectionController {
|
||||
info: { user_id, customer_id, customer_name, language },
|
||||
});
|
||||
|
||||
delete response.connection.user_id;
|
||||
delete response.connection.customer_id;
|
||||
delete response.connection.customer_name;
|
||||
delete response.connection.updated_at;
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user