Skip to content

Commit

Permalink
bugfix - datapack definition structure had changed
Browse files Browse the repository at this point in the history
  • Loading branch information
marcolarosa committed Feb 2, 2024
1 parent c76d032 commit 194a08b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index-datapacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class IndexDataPacks {
if (this.log) {
console.log(`Loading ${pack}`);
}
if (isString(datapacks[pack]) && datapacks[pack].match(/.*\.json$/)) {
pack = path.join(host, datapacks[pack]);
if (isString(datapacks[pack]?.path) && datapacks[pack]?.path?.match(/.*\.json$/)) {
pack = path.join(host, datapacks[pack].path);
let data = await this.fetchDataPack({ pack });
let chunks = chunk(data, this.chunkSize);
for (let chunk of chunks) {
Expand Down

0 comments on commit 194a08b

Please sign in to comment.