Skip to content

Commit

Permalink
small update to handler to make url lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnoo committed Jul 19, 2024
1 parent cd3a0bb commit f81edef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/functions/summary/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const MAX_COMMENTS = 1000;
const summary: ValidatedEventAPIGatewayProxyEvent<typeof schema> = async (
event
) => {
const { pageURL } = event.body;
let { pageURL } = event.body;
pageURL = pageURL.toLowerCase();
const tabInfo = determineTabFromUrl(pageURL);
const { columnMap } = tabInfo;
const dataReach = tabInfo.isDefault ? INPUT_SIZE_SPARSE : INPUT_SIZE_FREQUENT;
Expand Down

0 comments on commit f81edef

Please sign in to comment.