bulltrackers-module 1.0.1 → 1.0.2
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.
|
@@ -188,7 +188,7 @@ async function dispatchDiscovery(userType, candidates, config) {
|
|
|
188
188
|
topicName,
|
|
189
189
|
dispatchBatchSize,
|
|
190
190
|
pubsubBatchSize,
|
|
191
|
-
|
|
191
|
+
pendingSpecCollection, // <-- Change to singular
|
|
192
192
|
pendingMaxFieldsPerDoc,
|
|
193
193
|
pendingMaxWritesPerBatch
|
|
194
194
|
} = config;
|
|
@@ -203,9 +203,9 @@ async function dispatchDiscovery(userType, candidates, config) {
|
|
|
203
203
|
const cidsArray = Array.from(candidates);
|
|
204
204
|
|
|
205
205
|
if (isSpeculator) {
|
|
206
|
-
await firestoreUtils.clearCollection(
|
|
206
|
+
await firestoreUtils.clearCollection(pendingSpecCollection); // <-- Change to singular
|
|
207
207
|
await firestoreUtils.batchWriteShardedIds(
|
|
208
|
-
|
|
208
|
+
pendingSpecCollection, // <-- And this line
|
|
209
209
|
cidsArray,
|
|
210
210
|
new Date(),
|
|
211
211
|
pendingMaxFieldsPerDoc,
|