meadow-integration 1.0.17 → 1.0.18
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/package.json
CHANGED
|
@@ -448,9 +448,10 @@ class MeadowSyncEntityInitial extends libFableServiceProviderBase
|
|
|
448
448
|
tmpSyncState.EstimatedRecordCount = tmpSyncState.Server.RecordCount - tmpSyncState.Local.RecordCount;
|
|
449
449
|
|
|
450
450
|
// Apply MaxRecordsPerEntity cap if configured
|
|
451
|
-
|
|
451
|
+
tmpSyncState.RecordCap = (this.MaxRecordsPerEntity > 0)
|
|
452
452
|
? Math.min(tmpSyncState.Server.RecordCount, this.MaxRecordsPerEntity)
|
|
453
453
|
: tmpSyncState.Server.RecordCount;
|
|
454
|
+
let tmpRecordCap = tmpSyncState.RecordCap;
|
|
454
455
|
|
|
455
456
|
if (this.MaxRecordsPerEntity > 0 && tmpSyncState.EstimatedRecordCount > this.MaxRecordsPerEntity)
|
|
456
457
|
{
|
|
@@ -617,7 +618,7 @@ class MeadowSyncEntityInitial extends libFableServiceProviderBase
|
|
|
617
618
|
|
|
618
619
|
const fFetchPage = () =>
|
|
619
620
|
{
|
|
620
|
-
if (tmpTotalFetched >=
|
|
621
|
+
if (tmpTotalFetched >= tmpSyncState.RecordCap)
|
|
621
622
|
{
|
|
622
623
|
return fSyncComplete();
|
|
623
624
|
}
|