fix: type resource import enrichment fallback
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user