fix: type resource import enrichment fallback

This commit is contained in:
巫凤萍
2026-08-12 19:59:38 +08:00
parent e05041e037
commit ee6caaf9e5

View File

@@ -106,7 +106,12 @@ async function enrichRows(rows: ResourceImportRow[], accounts: AccountRow[]) {
return baseline;
}
let details = await resolveXhsProfileDetailsFromMcp(row.profileUrl, mcpConfig).catch(
let details: {
nickname: string | null;
redId: string | null;
followers: number | null;
ipLocation: string | null;
} = await resolveXhsProfileDetailsFromMcp(row.profileUrl, mcpConfig).catch(
() => ({ nickname: null, redId: null, followers: null, ipLocation: null }),
);
const mcpResult = {