add rank enforcement at product variant level
This commit is contained in:
@@ -174,6 +174,8 @@ class ProductVariantService extends BaseService {
|
||||
)
|
||||
}
|
||||
|
||||
if (!rest.rank) rest.rank = 0
|
||||
|
||||
const toCreate = {
|
||||
...rest,
|
||||
product_id: product.id,
|
||||
|
||||
Reference in New Issue
Block a user