|
|
@@ -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 =>
|