Files
calendar/scripts
RomitGitHubDevin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>bot_apkAlex van Andel
ee973c6661 fix: harden seed script org settings upsert and P2002 error handling (#28527)
* fix: harden seed script org settings upsert and P2002 error handling

Co-Authored-By: romitgabani1 <[email protected]>

* fix: remove PII from P2002 log and recover existing user instead of returning null

- Replace username interpolation in log message with generic text (Cubic violation #2, confidence 9/10)
- On P2002, fetch the existing user from DB and return it with membership data instead of returning null, which was dropping users from org setup on retries (Cubic violation #3, confidence 9/10)

Co-Authored-By: bot_apk <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: bot_apk <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
2026-03-24 21:43:50 +00:00
..
2022-08-11 18:43:59 -06:00