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 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-01 07:49:31 -08:00
parent 7549b2b9a9
commit 8d7e5b17a1
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export class SystemAccountsService {
);
const miningDataMap = new Map<string, MiningServiceSystemAccount>();
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