@codemem/server 0.29.0 → 0.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/routes/sync.d.ts.map +1 -1
- package/package.json +2 -2
- package/static/app.js +1 -1
package/dist/index.js
CHANGED
|
@@ -2403,7 +2403,7 @@ function syncProtocolRoutes(getStore, opts = {}) {
|
|
|
2403
2403
|
}, 400);
|
|
2404
2404
|
const [localDeviceId] = ensureDeviceIdentity(store.db, { keysDir: syncKeysDir() });
|
|
2405
2405
|
const filteredInbound = filterOpsForPeer(store, peerDeviceId, normalizedOps);
|
|
2406
|
-
const result = applyReplicationOps(store.db, filteredInbound.allowed, localDeviceId);
|
|
2406
|
+
const result = applyReplicationOps(store.db, filteredInbound.allowed, localDeviceId, store.scanner);
|
|
2407
2407
|
return c.json({
|
|
2408
2408
|
...result,
|
|
2409
2409
|
skipped: result.skipped + filteredInbound.skipped
|
|
@@ -2703,7 +2703,7 @@ function syncRoutes(getStore, getSyncRuntimeStatus) {
|
|
|
2703
2703
|
else peerIds = store.db.prepare("SELECT peer_device_id FROM sync_peers").all().map((row) => String(row.peer_device_id ?? "").trim()).filter(Boolean);
|
|
2704
2704
|
const items = [];
|
|
2705
2705
|
for (const peerId of peerIds) {
|
|
2706
|
-
const result = await runSyncPass(store.db, peerId);
|
|
2706
|
+
const result = await runSyncPass(store.db, peerId, { scanner: store.scanner });
|
|
2707
2707
|
items.push({
|
|
2708
2708
|
peer_device_id: peerId,
|
|
2709
2709
|
...result
|