Expanded puppeteer options. Fixed Mike Adriano scraper. Fixed convert utility.
This commit is contained in:
@@ -79,7 +79,7 @@ function convertApi(input, fromOrTo, to) {
|
||||
|
||||
const inputNumber = Number(typeof input === 'string' ? input.match(/\d+(\.\d+)?/)?.[0] : input);
|
||||
|
||||
return Math.round(convert(inputNumber).from(fromOrTo).to(to)) || null;
|
||||
return Math.round(convert(inputNumber, fromOrTo).to(to)) || null;
|
||||
} catch (error) {
|
||||
logger.error(error);
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user