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
@@ -3,7 +3,7 @@ import { AccountStatus, AccountType } from '@/generated/prisma/enums'
import { PrismaService } from '@/prisma/prisma.service'
import { Injectable } from '@nestjs/common'
import { ResponseMapper } from 'common/response/response-mapper'
import { CreatePartnerAccountDto, UpdateAccountDto } from './dto/account.dto'
import { CreatePartnerAccountDto, UpdatePartnerAccountDto } from './dto/account.dto'
@Injectable()
export class AccountsService {
@@ -73,7 +73,7 @@ export class AccountsService {
return ResponseMapper.create(account)
}
async update(id: string, data: UpdateAccountDto) {
async update(id: string, data: UpdatePartnerAccountDto) {
const account = await this.prisma.account.update({ where: { id }, data })
return ResponseMapper.update(account)
}