switch from map to forEach

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
Emma Indal
2021-04-27 11:07:08 +02:00
parent e1e757569f
commit 266e46d3c3
@@ -98,7 +98,7 @@ export class IndexBuilder {
async build(): Promise<{ scheduler: Scheduler }> {
const scheduler = new Scheduler({ logger: this.logger });
Object.keys(this.collators).map(type => {
Object.keys(this.collators).forEach(type => {
scheduler.addToSchedule(async () => {
// Collate, Decorate, Index.
const decorators: DocumentDecorator[] = (