fix: BigInt for sizeBytes
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 1s
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 1s
This commit is contained in:
parent
6aa24cc5bb
commit
28ff67c69e
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user