Skip to content

Commit

Permalink
fix: removed isPaginated logic
Browse files Browse the repository at this point in the history
  • Loading branch information
murali-shris committed Dec 12, 2024
1 parent 8baa6da commit 083c581
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/at_commons/lib/src/verb/sync_verb_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,18 @@ class SyncVerbBuilder implements VerbBuilder {

@Deprecated(
'This field is not used anymore even though it is set in client. Remove this in next major release')
bool isPaginated = true;
bool isPaginated = false;

/// if skipDeletesUntil is set, then delete commit entries whose commitId is <= skipDeletesUntil will not be synced from server to client
int? skipDeletesUntil;

@override
String buildCommand() {
StringBuffer serverCommandBuffer = StringBuffer('sync:');
if (isPaginated) {
serverCommandBuffer.write('from:');
}
// removed isPaginated logic, since sync:from is the default sync verb on server
serverCommandBuffer.write('from:');
serverCommandBuffer.write('$commitId');
if (isPaginated) {
serverCommandBuffer.write(':limit:$limit');
}
serverCommandBuffer.write(':limit:$limit');
if (skipDeletesUntil != null) {
serverCommandBuffer.write(':skipDeletesUntil:$skipDeletesUntil');
}
Expand Down

0 comments on commit 083c581

Please sign in to comment.