diff --git a/packages/server/scripts/update_defendants.js b/packages/server/scripts/update_defendants.js index f74ba4d..280fa88 100644 --- a/packages/server/scripts/update_defendants.js +++ b/packages/server/scripts/update_defendants.js @@ -33,7 +33,7 @@ async function updateDefendants() { suffix: d.suffix, exact: true, }, null); - const match = matches.filter((itm) => (`${itm.defendant}.${itm.sex}.${itm.race}`.toLocaleLowerCase()) === d.long_id.toLocaleLowerCase()); + const match = matches.filter((itm) => (`${itm.defendant}.${itm.sex}.${itm.race}`.toLowerCase()) === d.long_id.toLowerCase()); let updateObject; let nCases = 0; if (match.length > 0) nCases = match[0].cases.length;