@slavmak2486/bx24ts 1.2.1 → 1.2.3

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.
package/BatchHelper.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { chunk } from 'lodash';
2
1
  import {batchCmdElement, batchCmdElementParams} from './types/batchElement'
3
2
  import { BX24 } from './BX24';
4
3
 
@@ -107,7 +106,7 @@ export class BatchHelper{
107
106
  }
108
107
  const curParams = Object.assign({start:0}, params)
109
108
  curParams['start'] = 50 * 50 * i + j * 50;
110
- this.addToBatch({[requestName + j]:[action, curParams]});
109
+ this.addToBatch({[requestName + `${i}-${j}`]:[action, curParams]});
111
110
  }
112
111
  }
113
112
  }
@@ -90,7 +90,7 @@ class BatchHelper {
90
90
  }
91
91
  const curParams = Object.assign({ start: 0 }, params);
92
92
  curParams['start'] = 50 * 50 * i + j * 50;
93
- this.addToBatch({ [requestName + j]: [action, curParams] });
93
+ this.addToBatch({ [requestName + `${i}-${j}`]: [action, curParams] });
94
94
  }
95
95
  }
96
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slavmak2486/bx24ts",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Library for bitrix24",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",