From 8d7e5b17a141a53bed1dbc493e45468e28ef11d3 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 1 Feb 2026 07:49:31 -0800 Subject: [PATCH] fix(mining-admin-service): cast response.data to any for envelope unwrapping TypeScript build fails because MiningServiceResponse type doesn't have a 'data' property. The runtime response from mining-service wraps data in a { success, data } envelope, so we need `as any` to access it. Co-Authored-By: Claude Opus 4.5 --- .../src/application/services/system-accounts.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/mining-admin-service/src/application/services/system-accounts.service.ts b/backend/services/mining-admin-service/src/application/services/system-accounts.service.ts index 7c2755d2..f1c320b0 100644 --- a/backend/services/mining-admin-service/src/application/services/system-accounts.service.ts +++ b/backend/services/mining-admin-service/src/application/services/system-accounts.service.ts @@ -47,7 +47,7 @@ export class SystemAccountsService { ); const miningDataMap = new Map(); - const body = response.data?.data ?? response.data; + const body = (response.data as any)?.data ?? response.data; for (const account of body.accounts) { // 使用 accountType:regionCode 作为 key,与 contribution 表一致 const key = account.regionCode