fixing malware stuff
This commit is contained in:
@@ -10,11 +10,11 @@ class GetCategoryUseCase {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const outputParts = stdout.split(/\s+/);
|
const outputParts = stdout.split(/\t/);
|
||||||
if (outputParts[3]) {
|
if (outputParts[6] !== '0') {
|
||||||
const categoryId = outputParts[2];
|
resolve(outputParts[6])
|
||||||
console.log({ categoryId });
|
} else if (outputParts[3]) {
|
||||||
resolve(categoryId);
|
resolve(outputParts[2]);
|
||||||
} else {
|
} else {
|
||||||
console.log({ error: 'Category ID not found' });
|
console.log({ error: 'Category ID not found' });
|
||||||
reject('Category ID not found');
|
reject('Category ID not found');
|
||||||
|
|||||||
Reference in New Issue
Block a user