fix: BigInt for sizeBytes
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 1s

This commit is contained in:
WangDL 2026-05-23 20:26:44 +08:00
parent 6aa24cc5bb
commit 28ff67c69e

View File

@ -30,7 +30,7 @@ export class AdminDashboardService {
safe(() => this.prisma.knowledgeBase.count({ where: { createdAt: { gte: today, lt: tomorrow }, deletedAt: null } }), 0),
safe(() => this.prisma.aiUsageLog.count({ where: { createdAt: { gte: today, lt: tomorrow } } }), 0),
safe(() => this.prisma.uploadedFile.count(), 0),
safe(() => this.prisma.uploadedFile.aggregate({ _sum: { sizeBytes: true } }), { _sum: { sizeBytes: 0 } }),
safe(() => this.prisma.uploadedFile.aggregate({ _sum: { sizeBytes: true } }), { _sum: { sizeBytes: BigInt(0) } }),
]);
const userTrend = await this.getUserTrend(30);