mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 06:24:30 +00:00
update tests
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user