Просмотр исходного кода

fix(core): Fix progress reporting for collection filters job

Michael Bromley 11 месяцев назад
Родитель
Сommit
eaa8eb66ee
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/core/src/service/services/collection.service.ts

+ 1 - 1
packages/core/src/service/services/collection.service.ts

@@ -172,7 +172,7 @@ export class CollectionService implements OnModuleInit {
                             Logger.error(e.message);
                             continue;
                         }
-                        job.setProgress(Math.ceil((completed / job.data.collectionIds.length) * 100));
+                        job.setProgress(Math.ceil((completed / collectionIds.length) * 100));
                         if (affectedVariantIds.length) {
                             // To avoid performance issues on huge collections we first split the affected variant ids into chunks
                             this.chunkArray(affectedVariantIds, 50000).map(chunk =>