Files
wizarr/app/blueprints/api_keys
Matthieu B 09b79b5e0d fix: handle legacy admin user when creating API keys (#1174)
When the legacy AdminUser (id="admin", a string) is logged in and tries
to create an API key, the string id was being passed to the Integer FK
column created_by_id on ApiKey, causing a DB type mismatch error. Resolve
the id by looking up the first AdminAccount row instead. Also adds a
try/except with session rollback around the DB write so failures surface
as a flash message rather than a 500.
2026-03-29 16:10:35 +02:00
..