fix: null cast for refundStatus in TypeORM

This commit is contained in:
2026-07-06 10:50:24 +08:00
parent 94251b66ce
commit da69545f74
4 changed files with 681 additions and 132 deletions

View File

@@ -167,7 +167,7 @@ export class DepositsService {
throw new BadRequestException('未找到待审批的退款申请');
}
deposit.refundStatus = null;
deposit.refundStatus = null as unknown as string;
deposit.refundApprovedBy = userId;
deposit.refundApprovedAt = new Date();
deposit.refundRejectedReason = reason;