diff --git a/scripts/dbRefresh.ts b/scripts/dbRefresh.ts index 12007f54..7e997a8a 100644 --- a/scripts/dbRefresh.ts +++ b/scripts/dbRefresh.ts @@ -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