add rank enforcement at product variant level

This commit is contained in:
pKorsholm committed 2021-09-03 17:24:06 +02:00
1 parent 73a4746500
commit 13d539b882
1 file changed
+2
@@ -174,6 +174,8 @@ class ProductVariantService extends BaseService {
) )
} }
if (!rest.rank) rest.rank = 0
const toCreate = { const toCreate = {
...rest, ...rest,
product_id: product.id, product_id: product.id,