Files
OSIT-AE-API-FastAPI/app
Scott Idem dfb5289188 fix: skip account_id injection when model excludes it from DB writes
After the sanitize_payload order fix, account_id was being re-injected
into data_to_insert for models that explicitly list account_id in
fields_to_exclude_from_db (e.g. event_badge, event_device). Those tables
have no account_id column, causing INSERT failures.

Guard the post-sanitize account_id injection in both api_crud_v3.py and
api_crud_v3_nested.py by checking fields_to_exclude_from_db first.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 19:09:11 -04:00
..
2020-09-14 12:41:02 -04:00
2026-01-06 18:06:45 -05:00
2026-02-06 13:56:40 -05:00
2026-02-06 13:56:40 -05:00
2026-04-02 16:51:34 -04:00