From 28ff67c69ea6b63ca68b93665184c1b2627534e9 Mon Sep 17 00:00:00 2001 From: WangDL Date: Sat, 23 May 2026 20:26:44 +0800 Subject: [PATCH] fix: BigInt for sizeBytes --- src/modules/admin-dashboard/admin-dashboard.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/admin-dashboard/admin-dashboard.service.ts b/src/modules/admin-dashboard/admin-dashboard.service.ts index f0acec6..80bd4e7 100644 --- a/src/modules/admin-dashboard/admin-dashboard.service.ts +++ b/src/modules/admin-dashboard/admin-dashboard.service.ts @@ -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);