u
This commit is contained in:
@@ -16,6 +16,7 @@ function ledgerErrorStatus(error) {
|
||||
if (error.message === 'Invalid ledger entry') return 400;
|
||||
if (error.message === 'Invalid manifest article id') return 400;
|
||||
if (error.message === 'Invalid SKU') return 400;
|
||||
if (error.message?.includes('Stock tracking is disabled')) return 409;
|
||||
return 500;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user