Skip to content

Commit

Permalink
fix(db): Play nicely with collections index
Browse files Browse the repository at this point in the history
  • Loading branch information
bagelbits committed Dec 25, 2024
1 parent eaf3e68 commit f4a9f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dbRefresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const uploadTablesFromFolder = (jsonDbDir: string, collectionPrefix = '') => {
const match = regex.exec(filename)!;
const dataName = match[1];
const collectionName = `${collectionPrefix}${dataName.toLowerCase()}`;
collections.push({ index: collectionName });
collections.push({ index: dataName.toLowerCase() });
// example:
// mongoimport --uri mongodb://localhost/5e-database
// --collection ability-scores
Expand Down

0 comments on commit f4a9f40

Please sign in to comment.