u
This commit is contained in:
@@ -40,8 +40,8 @@ export default function setBrandIdBySku(provider) {
|
||||
runner,
|
||||
);
|
||||
|
||||
if (brandId !== null && !Number.isFinite(brandId)) {
|
||||
throw new Error('Brand not found');
|
||||
if (brandId !== null && (typeof brandId !== 'number' || !Number.isInteger(brandId) || brandId <= 0)) {
|
||||
throw new Error('Invalid brandId');
|
||||
}
|
||||
|
||||
let resolvedBrandId = null;
|
||||
|
||||
Reference in New Issue
Block a user