forked from wangziqi/gongxue-base
fix: remove null assignments incompatible with non-null entity types
This commit is contained in:
@@ -99,11 +99,6 @@ export class DepositsService {
|
||||
deduction > 0 ? (refundAmount > 0 ? 'partial_refund' : 'deducted') : 'refunded';
|
||||
if (dto.notes) deposit.notes = dto.notes;
|
||||
|
||||
// Clear refund approval flow if direct refund
|
||||
deposit.refundStatus = null;
|
||||
deposit.refundRequestedAt = null;
|
||||
deposit.refundApprovedBy = null;
|
||||
deposit.refundApprovedAt = null;
|
||||
|
||||
return this.repo.save(deposit);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user