mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-16 10:09:08 +00:00
FIX: update organization info field from 'name' to 'companyName'
This commit is contained in:
@@ -227,7 +227,7 @@ export class CustomersService implements OnModuleInit {
|
||||
async updateOrganizationInfo(
|
||||
customerId: string,
|
||||
data: {
|
||||
name: string;
|
||||
companyName: string;
|
||||
companySite: string;
|
||||
domain: string;
|
||||
cnpj: string;
|
||||
@@ -238,7 +238,7 @@ export class CustomersService implements OnModuleInit {
|
||||
const result = await lastValueFrom(
|
||||
this.customerService.OrganizationUpdate({
|
||||
customerId,
|
||||
name: data.name || '',
|
||||
companyName: data.companyName || '',
|
||||
companySite: data.companySite || '',
|
||||
domain: data.domain || '',
|
||||
cnpj: data.cnpj || '',
|
||||
@@ -263,7 +263,7 @@ export class CustomersService implements OnModuleInit {
|
||||
const customer = customerResponse.customer;
|
||||
|
||||
return {
|
||||
name: customer.name || '',
|
||||
companyName: customer.companyName || '',
|
||||
companySite: customer.companySite || '',
|
||||
domain: customer.domain || '',
|
||||
cnpj: customer.cnpj || '',
|
||||
|
||||
Reference in New Issue
Block a user