Skip to content

Commit

Permalink
Fix fetching from MarketScreener
Browse files Browse the repository at this point in the history
Signed-off-by: Marvin A. Ruder <[email protected]>
  • Loading branch information
marvinruder committed Aug 1, 2024
1 parent ad06537 commit ad3ea55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/fetchers/marketScreenerFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const marketScreenerFetcher: Fetcher = async (req: Request, stock: Stock): Promi

try {
// Check for the presence of the div and JSON properties containing all relevant analyst-related information.
const consensusTableDiv = document.getElementById("consensusdetail");
const consensusTableDiv = document.getElementById("consensus-analysts");
assert(consensusTableDiv, "Unable to find Analyst Consensus div.");
assert(json.constructor === Object, "Unable to find Analyst Ratings.");
assert("error" in json && json.error === false, "The server reported an error when fetching Analyst Ratings.");
Expand Down

0 comments on commit ad3ea55

Please sign in to comment.