FIX: update organization info field from 'name' to 'companyName'

This commit is contained in:
viniciusgadea
2026-01-05 11:47:20 -03:00
parent da23ad76db
commit e2a7d2b92b
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -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 || '',