feat: implement partner licenses module with pagination and filtering capabilities

This commit is contained in:
2026-04-26 09:54:48 +03:30
parent b72e6c7194
commit 34793295c9
24 changed files with 459 additions and 76 deletions
+2 -2
View File
@@ -8,13 +8,13 @@ export class AdminUsersService {
constructor(private readonly prisma: PrismaService) {}
async findAll() {
const [users, count] = await this.prisma.$transaction([
const [users, total] = await this.prisma.$transaction([
this.prisma.admin.findMany(),
this.prisma.admin.count(),
])
return ResponseMapper.paginate(
users.map(user => ({ ...user, fullname: `${user.first_name} ${user.last_name}` })),
{ count },
{ total },
)
}