Skip to content

Commit 3b5c830

Browse files
committed
fix: fix initial addressbook sync skipping items due to ordering
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent ca688f5 commit 3b5c830

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/dav/lib/CardDAV/CardDavBackend.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,8 @@ public function getChangesForAddressBook($addressBookId, $syncToken, $syncLevel,
980980
->from('cards')
981981
->where(
982982
$qb->expr()->eq('addressbookid', $qb->createNamedParameter($addressBookId))
983-
);
983+
)
984+
->orderBy('id');
984985
// No synctoken supplied, this is the initial sync.
985986
$qb->setMaxResults($limit);
986987
$stmt = $qb->executeQuery();

0 commit comments

Comments
 (0)