add rank updates to productservice.update

This commit is contained in:
pKorsholm
2021-09-02 09:53:07 +02:00
parent 99b6a94146
commit 7681e6a641
+3 -1
View File
@@ -410,7 +410,9 @@ class ProductService extends BaseService {
}
const newVariants = []
for (const newVariant of variants) {
for (const [i, newVariant] of variants.entries()) {
newVariant.rank = i
if (newVariant.id) {
const variant = product.variants.find(v => v.id === newVariant.id)