Developer-only destructive repair tool
Promote This Device as Source of Truth
This tool is for emergency sync repair when the current device has the correct IndexedDB account data and Firebase has stale cloud data.
Warning 1 — What this does
This will read this device's local projects, schedules, directories, employees, invoices, payments, and receipts, then make Firebase match this device for the active company/account.
A timestamped Firebase backup is created before changes are made.
Warning 2 — What this must not be used for
Do not run this from a stale device. Do not run this from Cloudflare if Cloudflare is showing bad data. Run it only from the device/origin that shows the correct account data.
Developer re-authentication
Final confirmation
This will overwrite Firebase data stores for the active company/account from this device and create cloud tombstones for cloud records not present locally.