fix: fix initial addressbook sync skipping items due to ordering

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-04-23 17:03:48 +02:00
parent e164139c57
commit 146ebef567
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -980,7 +980,8 @@ class CardDavBackend implements BackendInterface, SyncSupport {
->from('cards')
->where(
$qb->expr()->eq('addressbookid', $qb->createNamedParameter($addressBookId))
);
)
->orderBy('id');
// No synctoken supplied, this is the initial sync.
$qb->setMaxResults($limit);
$stmt = $qb->executeQuery();