update tests

This commit is contained in:
yiling
2026-06-07 19:26:07 +08:00
parent aa8d159dd3
commit 99424aa6e1
4 changed files with 27 additions and 17 deletions
+2 -6
View File
@@ -185,9 +185,7 @@ export class SearchService {
}
}
const countRes = await this.prismaClient.$queryRaw<{ count: bigint }[]>(
countBuilder.build(),
)
const countRes = await this.prismaClient.$queryRaw<{ count: bigint }[]>(countBuilder.build())
pageInfo.total = Number(countRes[0]?.count || 0)
if (hasNextPage) {
@@ -368,9 +366,7 @@ export class SearchService {
countBuilder.addWhere(Prisma.sql`a.name ILIKE ${'%' + valStr + '%'}`)
}
const countRes = await this.prismaClient.$queryRaw<{ count: bigint }[]>(
countBuilder.build(),
)
const countRes = await this.prismaClient.$queryRaw<{ count: bigint }[]>(countBuilder.build())
pageInfo.total = Number(countRes[0]?.count || 0)
}