Update Protospack Name and Network Config

This commit is contained in:
Victor Radael
2022-08-02 11:47:13 -03:00
parent 00687dc84e
commit 4e6883a404
19 changed files with 180 additions and 72 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { credentials } from '@grpc/grpc-js';
import { ClientOptions, Transport } from '@nestjs/microservices';
import { ConnectionManager } from 'protospack-v2';
import { ConnectionManager } from '@dadosfera/protospack-v2';
export class ConnectionClientConfiguration {
config(): ClientOptions {
+1 -1
View File
@@ -6,7 +6,7 @@ import {
HttpStatus,
} from '@nestjs/common';
import { ClientGrpc } from '@nestjs/microservices';
import { ConnectionManager } from 'protospack-v2';
import { ConnectionManager } from '@dadosfera/protospack-v2';
import { lastValueFrom } from 'rxjs';
export class ConnectionClientService implements OnModuleInit {
@@ -48,7 +48,7 @@ export class ConnectionController {
const { user_id, customer_id, customer_name } = user;
const response = await this.clientService.createConnection({
const response: any = await this.clientService.createConnection({
body,
info: { user_id, customer_id, customer_name },
});
@@ -74,7 +74,7 @@ export class ConnectionController {
const { user_id, customer_id, customer_name } = user;
const response = await this.clientService.updateConnection({
const response: any = await this.clientService.updateConnection({
body: { ...body, id },
info: { user_id, customer_id, customer_name, language },
});
@@ -95,7 +95,7 @@ export class ConnectionController {
const { user_id, customer_id, customer_name } = user;
const response = await this.clientService.deleteConnection({
const response: any = await this.clientService.deleteConnection({
body: { id },
info: { user_id, customer_id, customer_name },
});
@@ -140,7 +140,7 @@ export class ConnectionController {
const { user_id, customer_id, customer_name } = user;
const response = await this.clientService.getConnection({
const response: any = await this.clientService.getConnection({
body: { id },
info: { user_id, customer_id, customer_name, language },
});
@@ -160,7 +160,7 @@ export class ConnectionController {
const { user_id, customer_id, customer_name } = user;
const response = await this.clientService.getConnectionDetails({
const response: any = await this.clientService.getConnectionDetails({
body: { id },
info: { user_id, customer_id, customer_name },
});