Browse Source

chore(core): Fix typo in comment

Michael Bromley 3 years ago
parent
commit
b6a49d0d05
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/core/src/service/services/collection.service.ts

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

@@ -499,7 +499,8 @@ export class CollectionService implements OnModuleInit {
         for (const coll of [...descendants.reverse(), collection]) {
             const affectedVariantIds = await this.getCollectionProductVariantIds(coll);
             const deletedColl = new Collection(coll);
-            // To avoid perfomance issues on huge collection, we first delete the links between the product variants and the collection by chunks
+            // To avoid performance issues on huge collections, we first delete the links
+            // between the product variants and the collection by chunks
             const chunkedDeleteIds = this.chunkArray(affectedVariantIds, 500);
             for (const chunkedDeleteId of chunkedDeleteIds) {
                 await this.connection.rawConnection