src/models/observations.mjs
BeforeProposed
+1−1
22export function observations(rows) {
33 const seen = new Map();
44 for (const row of rows) {
5 const id = String(row.key);
5 const id = row.key + ':' + row.revision;
66 requireValue(
77 !seen.has(id) || JSON.stringify(seen.get(id)) === JSON.stringify(row),
88 'conflicting-revision',