refactor(accounts): rename account DTOs for clarity and consistency
This commit is contained in:
@@ -19,6 +19,10 @@ export class CustomersService {
|
||||
id: true,
|
||||
}
|
||||
|
||||
console.log('type', type)
|
||||
console.log('type === CustomerType.LEGAL', type === CustomerType.LEGAL)
|
||||
console.log('type === CustomerType.INDIVIDUAL', type === CustomerType.INDIVIDUAL)
|
||||
|
||||
if (type === CustomerType.LEGAL) {
|
||||
where.legal = {
|
||||
business_activity_id: posInfo.business_id,
|
||||
@@ -118,9 +122,7 @@ export class CustomersService {
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
type: true,
|
||||
created_at: true,
|
||||
updated_at: true,
|
||||
...select,
|
||||
},
|
||||
})
|
||||
return ResponseMapper.list(customers)
|
||||
|
||||
Reference in New Issue
Block a user