From 0e058caa281c332fa49ede05e752e9594d265b80 Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 5 Feb 2026 23:02:02 -0800 Subject: [PATCH] =?UTF-8?q?fix(contracts):=20Prisma=20JSON=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=BD=BF=E7=94=A8=20undefined=20=E6=9B=BF=E4=BB=A3=20?= =?UTF-8?q?null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.5 --- .../src/infrastructure/jobs/contract-batch-download.job.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/admin-service/src/infrastructure/jobs/contract-batch-download.job.ts b/backend/services/admin-service/src/infrastructure/jobs/contract-batch-download.job.ts index 5c61e9c0..4e8e274e 100644 --- a/backend/services/admin-service/src/infrastructure/jobs/contract-batch-download.job.ts +++ b/backend/services/admin-service/src/infrastructure/jobs/contract-batch-download.job.ts @@ -210,7 +210,7 @@ export class ContractBatchDownloadJob implements OnModuleInit { failedCount, progress, lastProcessedOrderNo: contract.orderNo, - errors: errors.length > 0 ? errors : null, + errors: errors.length > 0 ? errors : undefined, }, }); this.logger.log(`进度: ${progress}% (${downloadedCount}/${totalContracts})`); @@ -245,7 +245,7 @@ export class ContractBatchDownloadJob implements OnModuleInit { progress: 100, resultFileUrl, resultFileSize: BigInt(zipStats.size), - errors: errors.length > 0 ? errors : null, + errors: errors.length > 0 ? errors : undefined, completedAt: new Date(), expiresAt: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000), // 7天后过期 },