add rank enforcement at product variant level

This commit is contained in:
pKorsholm
2021-09-03 17:24:06 +02:00
parent 73a4746500
commit 13d539b882

View File

@@ -174,6 +174,8 @@ class ProductVariantService extends BaseService {
)
}
if (!rest.rank) rest.rank = 0
const toCreate = {
...rest,
product_id: product.id,