A nightly sync merges row versions from several tenants with mergeLatest(rows), keeping the newest version of each record. Support reports that some records disappear after the merge. One failing batch:
| tenant | id | version |
|---|
acme:eu | order-1 | 1 |
acme | eu:order-1 | 2 |
These are two different records, so both rows should come back. mergeLatest returns only the second row.
Fix mergeLatest in merge.js.