refactor(accounts): rename account DTOs for clarity and consistency

This commit is contained in:
2026-06-05 01:33:30 +03:30
parent 5ce560ce97
commit 25e589551b
20 changed files with 132 additions and 56 deletions
@@ -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)