fix: type resource import enrichment fallback
This commit is contained in:
@@ -106,7 +106,12 @@ async function enrichRows(rows: ResourceImportRow[], accounts: AccountRow[]) {
|
|||||||
return baseline;
|
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 }),
|
() => ({ nickname: null, redId: null, followers: null, ipLocation: null }),
|
||||||
);
|
);
|
||||||
const mcpResult = {
|
const mcpResult = {
|
||||||
|
|||||||
Reference in New Issue
Block a user