Преглед изворни кода

chore(core): Fix typo in comment

Michael Bromley пре 3 година
родитељ
комит
b6a49d0d05
1 измењених фајлова са 2 додато и 1 уклоњено
  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]) {
         for (const coll of [...descendants.reverse(), collection]) {
             const affectedVariantIds = await this.getCollectionProductVariantIds(coll);
             const affectedVariantIds = await this.getCollectionProductVariantIds(coll);
             const deletedColl = new Collection(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);
             const chunkedDeleteIds = this.chunkArray(affectedVariantIds, 500);
             for (const chunkedDeleteId of chunkedDeleteIds) {
             for (const chunkedDeleteId of chunkedDeleteIds) {
                 await this.connection.rawConnection
                 await this.connection.rawConnection