mirror of
https://github.com/towfiqi/serpbear
synced 2025-06-26 18:15:54 +00:00
fix: Keyword Detail View's broken Search Result
This commit is contained in:
@@ -62,7 +62,7 @@ const getKeywords = async (req: NextApiRequest, res: NextApiResponse<KeywordsGet
|
||||
const lastWeekHistory :KeywordHistory = {};
|
||||
historySorted.slice(-7).forEach((x:any) => { lastWeekHistory[x.dateRaw] = x.position; });
|
||||
const keywordWithSlimHistory = { ...keyword, lastResult: [], history: lastWeekHistory };
|
||||
const finalKeyword = domainSCData ? integrateKeywordSCData(keyword, domainSCData) : keywordWithSlimHistory;
|
||||
const finalKeyword = domainSCData ? integrateKeywordSCData(keywordWithSlimHistory, domainSCData) : keywordWithSlimHistory;
|
||||
return finalKeyword;
|
||||
});
|
||||
return res.status(200).json({ keywords: processedKeywords });
|
||||
|
||||
Reference in New Issue
Block a user