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:
parent
7549b2b9a9
commit
8d7e5b17a1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue