Skip to content

Commit

Permalink
Merge pull request #241 from digi-serve/fix/sortLarge
Browse files Browse the repository at this point in the history
*Fix parse data to DC
  • Loading branch information
wongpratan authored Jul 18, 2024
2 parents e1164d9 + 0c2bc47 commit ac67dae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ABDataCollectionCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -2319,7 +2319,8 @@ module.exports = class ABDataCollectionCore extends ABMLClass {

let nextData;
if (data.length > 250) {
let pos = this.__dataCollection.count();
// let pos = this.__dataCollection.count();
let pos = this.__dataCollection.find({}).length;
let remain = data.splice(250);
nextData = {
data: remain,
Expand Down

0 comments on commit ac67dae

Please sign in to comment.