fix: remove truncated management totals

This commit is contained in:
hectorzhao
2026-07-12 10:56:00 +08:00
parent 24cb632a45
commit 390b970032
19 changed files with 107 additions and 80 deletions
+2
View File
@@ -93,6 +93,8 @@ describe('TenantsService', () => {
expect(prisma.tenant.findMany).toHaveBeenCalledWith(expect.objectContaining({
where: { status: { not: 'deleted' } },
}));
expect(prisma.tenant.findMany.mock.calls[0][0]).not.toHaveProperty('take');
expect(prisma.tenantAccount.findMany).toHaveBeenCalledWith();
expect(prisma.smsMessageRecord.groupBy).toHaveBeenCalledWith(expect.objectContaining({
by: ['tenantId'],
_sum: { amountCents: true },