mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-12 08:49:07 +00:00
Update Protospack Name and Network Config
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user