mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-23 22:39:08 +00:00
FEAT: add language by query
This commit is contained in:
@@ -6,6 +6,7 @@ import { UsersProtoService } from '@dadosfera/protospack-v2/dist/lib/Duc/interfa
|
||||
import { DucClient } from '../duc/client.config';
|
||||
import { ClientGrpc } from '@nestjs/microservices';
|
||||
import { ProtoServices } from '@dadosfera/protospack-v2/dist/lib/Duc';
|
||||
import { Metadata } from '@grpc/grpc-js';
|
||||
|
||||
@Injectable()
|
||||
export class OpenDataService implements OnModuleInit {
|
||||
@@ -28,7 +29,7 @@ export class OpenDataService implements OnModuleInit {
|
||||
|
||||
}
|
||||
|
||||
async createUser(customerId: string, data: CreateUserOpenDataDTO, roleIds: string[]) {
|
||||
async createUser(customerId: string, data: CreateUserOpenDataDTO, roleIds: string[], metadata: Metadata) {
|
||||
const body = {
|
||||
email: data.email,
|
||||
name: data.firstName + " " + data.lastName,
|
||||
@@ -40,7 +41,7 @@ export class OpenDataService implements OnModuleInit {
|
||||
|
||||
try {
|
||||
await lastValueFrom(
|
||||
this.usersClientService.SimpleUserCreate(body),
|
||||
this.usersClientService.SimpleUserCreate(body, metadata),
|
||||
);
|
||||
return "User created";
|
||||
} catch(err) {
|
||||
|
||||
Reference in New Issue
Block a user