From 1282cb0453919c1483f4493c7d4715b791b1fe2f Mon Sep 17 00:00:00 2001 From: casperiv <53900565+casperiv0@users.noreply.github.com> Date: Tue, 10 Dec 2024 12:08:29 +0100 Subject: [PATCH] chore: remove debug changes --- .../indexer/indexer.controller.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/core/src/plugin/default-search-plugin/indexer/indexer.controller.ts b/packages/core/src/plugin/default-search-plugin/indexer/indexer.controller.ts index 6173038b12..009bf68a75 100644 --- a/packages/core/src/plugin/default-search-plugin/indexer/indexer.controller.ts +++ b/packages/core/src/plugin/default-search-plugin/indexer/indexer.controller.ts @@ -304,7 +304,7 @@ export class IndexerController { }); if (variants) { - Logger.info(`Updating ${variants.length} variants`, workerLoggerCtx); + Logger.verbose(`Updating ${variants.length} variants`, workerLoggerCtx); await this.saveVariants(ctx, variants); } return true; @@ -517,13 +517,11 @@ export class IndexerController { } } - // Save in batches per currency code to avoid JS closure issues ctx.setChannel(originalChannel); - await this.queue.push(() => { - this.connection.rawConnection.getRepository(SearchIndexItem).save(items, { chunk: 2500 }); - console.log(JSON.stringify(items, null, 4)); - }); + await this.queue.push(() => + this.connection.rawConnection.getRepository(SearchIndexItem).save(items, { chunk: 2500 }), + ); } }