super-productivity/packages/super-sync-server/scripts
Johannes Millan 7201eebe85 fix(sync): wrap full-state operation payloads in appDataComplete
SYNC_IMPORT, BACKUP_IMPORT, and Repair operations contain full app state
in their payload. When these operations were downloaded by another client
and applied via applyOperations(), convertOpToAction() was spreading the
payload directly into the action. But reducers expect action.appDataComplete,
so they received undefined and fell back to empty/initial state.

This caused complete data loss (no projects, no tags, tasks in wrong project)
when syncing SYNC_IMPORT operations between clients.

Fix: Add extractFullStatePayload() that wraps the payload in appDataComplete
for full-state operation types, matching what loadAllData action expects.

Also clears file-based storage directories in the clear-data script.
2025-12-12 20:47:48 +01:00
..
clear-data.ts fix(sync): wrap full-state operation payloads in appDataComplete 2025-12-12 20:47:48 +01:00
delete-user.ts feat(syncServer): add email verification route and user deletion script 2025-12-12 20:46:04 +01:00