@or-sdk/contacts 3.2.2-beta.1775.0 → 3.2.2-beta.1778.0
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.
|
@@ -268,7 +268,7 @@ var ContactApi = (function (_super) {
|
|
|
268
268
|
return [2, this.createContactsInSingleBatch(__assign({ contacts: chunkContacts }, data))];
|
|
269
269
|
});
|
|
270
270
|
}); }; });
|
|
271
|
-
promisesBatchSize =
|
|
271
|
+
promisesBatchSize = 2;
|
|
272
272
|
results = [];
|
|
273
273
|
i = 0;
|
|
274
274
|
_a.label = 1;
|
|
@@ -159,7 +159,7 @@ export default class ContactApi extends BaseApi {
|
|
|
159
159
|
.map((chunkContacts) => () => __awaiter(this, void 0, void 0, function* () {
|
|
160
160
|
return this.createContactsInSingleBatch(Object.assign({ contacts: chunkContacts }, data));
|
|
161
161
|
}));
|
|
162
|
-
const promisesBatchSize =
|
|
162
|
+
const promisesBatchSize = 2;
|
|
163
163
|
const results = [];
|
|
164
164
|
for (let i = 0; i < batchPromises.length; i += promisesBatchSize) {
|
|
165
165
|
const s = performance.now();
|
package/package.json
CHANGED
package/src/api/contactApi.ts
CHANGED
|
@@ -252,7 +252,7 @@ export default class ContactApi extends BaseApi {
|
|
|
252
252
|
...data,
|
|
253
253
|
}));
|
|
254
254
|
|
|
255
|
-
const promisesBatchSize =
|
|
255
|
+
const promisesBatchSize = 2;
|
|
256
256
|
const results: CreateContactsBatchResults[] = [];
|
|
257
257
|
|
|
258
258
|
for (let i = 0;i < batchPromises.length;i += promisesBatchSize) {
|