bulltrackers-module 1.0.40 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const { FieldValue } = require('@google-cloud/firestore');
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Fetches closing prices using header and proxy managers and stores them in Firestore.
|
|
3
5
|
*
|
|
@@ -58,7 +60,7 @@ exports.fetchAndStorePrices = async (firestore, logger, headerManager, proxyMana
|
|
|
58
60
|
});
|
|
59
61
|
|
|
60
62
|
// Make the API request via the proxy manager
|
|
61
|
-
const
|
|
63
|
+
const response = await proxyManager.fetch(config.etoroApiUrl, fetchOptions);
|
|
62
64
|
|
|
63
65
|
if (!response || typeof response.text !== 'function') {
|
|
64
66
|
logger.log('ERROR', `[PriceFetcherHelpers] Invalid or incomplete response received`, { response });
|