forked from wangziqi/gongxue-base
refactor(deposits): remove refund approval remnants
This commit is contained in:
@@ -119,8 +119,7 @@ export class DashboardService {
|
||||
const pendingQb = this.depositRepo
|
||||
.createQueryBuilder('d')
|
||||
.select('SUM(d.amount)', 'total')
|
||||
.where('d.status = :paid', { paid: 'paid' })
|
||||
.andWhere('d.refundStatus IS NULL');
|
||||
.where('d.status = :paid', { paid: 'paid' });
|
||||
const pendingResult = await pendingQb.getRawOne();
|
||||
const pendingDeposits = parseFloat(pendingResult?.total || '0');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user