Skip to content

Commit

Permalink
fix(algolia): missing config param (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 8, 2019
1 parent e5d7bec commit d25ea19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function bootstrap(
});

if (state.seq > 0 && state.bootstrapDone === true) {
await algolia.putDefaultSettings(mainIndex);
await algolia.putDefaultSettings(mainIndex, config);
log.info('⛷ Bootstrap: done');
return state;
}
Expand All @@ -113,7 +113,7 @@ async function bootstrap(
log.info('⛷ Bootstrap: starting from the first doc');
// first time this launches, we need to remember the last seq our bootstrap can trust
await stateManager.save({ seq });
await algolia.putDefaultSettings(bootstrapIndex);
await algolia.putDefaultSettings(bootstrapIndex, config);
} else {
log.info('⛷ Bootstrap: starting at doc %s', state.bootstrapLastId);
}
Expand Down

0 comments on commit d25ea19

Please sign in to comment.