From 0c2bc479660fa99da61bf8f13c70c6477ef7b02d Mon Sep 17 00:00:00 2001 From: wongpratan Date: Thu, 18 Jul 2024 12:04:06 +0700 Subject: [PATCH] *Fix parse data to DC - https://github.com/digi-serve/ns_app/issues/494 --- ABDataCollectionCore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ABDataCollectionCore.js b/ABDataCollectionCore.js index e8b08373..368440bc 100644 --- a/ABDataCollectionCore.js +++ b/ABDataCollectionCore.js @@ -1880,7 +1880,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,