bulltrackers-module 1.0.44 → 1.0.46
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.
|
@@ -44,8 +44,6 @@ async function getLatestNormalUserPortfolios(normalUserCollectionName, snapshots
|
|
|
44
44
|
return allPortfolios;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
const { FieldValue } = require('@google-cloud/firestore'); // Ensure FieldValue is imported
|
|
48
|
-
|
|
49
47
|
/**
|
|
50
48
|
* Resets the proxy locks map in the performance document.
|
|
51
49
|
* @async
|
|
@@ -23,7 +23,7 @@ async function handleDiscover(task, taskId, clients, config) {
|
|
|
23
23
|
logger.log('INFO', `[DISCOVER] Added ${cids.length} speculator CIDs to the in-memory set to be flushed.`);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
const
|
|
26
|
+
const response = await clients.proxyManager.fetch(url, {
|
|
27
27
|
method: 'POST',
|
|
28
28
|
headers: { ...selectedHeader.headers, 'Content-Type': 'application/json' },
|
|
29
29
|
body: JSON.stringify(cids),
|
|
@@ -23,7 +23,7 @@ async function handleUpdate(task, taskId, clients, config) {
|
|
|
23
23
|
: `${config.ETORO_API_PORTFOLIO_URL}?cid=${userId}`;
|
|
24
24
|
|
|
25
25
|
logger.log('INFO', `[UPDATE] Fetching portfolio for user ${userId} (${userType} with url ${url})`);
|
|
26
|
-
const
|
|
26
|
+
const response = await clients.proxyManager.fetch(url, { headers: selectedHeader.headers });
|
|
27
27
|
// Add this check
|
|
28
28
|
if (!response || typeof response.text !== 'function') {
|
|
29
29
|
// Log the problematic response object for debugging
|
|
@@ -31,7 +31,7 @@ async function handleVerify(task, taskId, clients, config) {
|
|
|
31
31
|
|
|
32
32
|
let wasSuccess = false;
|
|
33
33
|
try {
|
|
34
|
-
const
|
|
34
|
+
const response = await clients.proxyManager.fetch(portfolioUrl, { headers: selectedHeader.headers });
|
|
35
35
|
if (!response.ok) continue;
|
|
36
36
|
wasSuccess = true;
|
|
37
37
|
|