-
-
Notifications
You must be signed in to change notification settings - Fork 202
[DevIndex] Create Country Code Repair Script #9142
Copy link
Copy link
Closed
Labels
Description
Since the LocationNormalizer is only applied during fresh API fetches, waiting for the update cycle would leave inconsistent data (broken flags) for existing records.
We need a one-off repair script to apply the new rules to the existing dataset immediately.
Scope:
- Create
apps/devindex/buildScripts/fixCountryCodes.mjs. - Use the
Storageservice to load all users. - Re-run
LocationNormalizeron every user's location string. - Update and save the records if the country code changes (e.g., 'DC' -> 'US').
Reactions are currently unavailable