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
@@ -37,7 +37,7 @@ export class GoodsService {
})
async findAll(guildId: string) {
const [goods, count] = await this.prisma.$transaction([
const [goods, total] = await this.prisma.$transaction([
this.prisma.good.findMany({
where: this.defaultWhere(guildId),
select: this.defaultSelect,
@@ -45,7 +45,7 @@ export class GoodsService {
this.prisma.good.count(),
])
return ResponseMapper.paginate(goods, {
count,
total,
})
}