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