Files
open-webui-custom/backend/open_webui/routers
Classic298 b272ca5e88 fix: remove invalid expunge call on Pydantic FileModel (#20931)
fix: remove invalid expunge call on Pydantic FileModel
Files.get_file_by_id() returns a Pydantic FileModel, not an SQLAlchemy
ORM object. Calling db.expunge() on a Pydantic model fails with
UnmappedInstanceError since it lacks _sa_instance_state.
The expunge was also unnecessary because subsequent DB updates already
use fresh sessions via get_db() context manager.
Fixes #20925
2026-01-26 07:24:53 -05:00
..
2026-01-23 04:31:39 +04:00
2026-01-23 01:23:34 +04:00
2026-01-20 22:28:10 +04:00
2026-01-22 03:11:33 +04:00
2026-01-09 20:44:31 +04:00
2026-01-17 21:41:48 +04:00
2025-12-29 00:21:18 +04:00
2026-01-22 03:55:07 +04:00
2026-01-05 05:32:56 +04:00
2026-01-12 21:41:23 +04:00
2026-01-08 01:55:56 +04:00
2025-12-29 01:20:04 +04:00
2026-01-22 03:55:07 +04:00
2026-01-12 21:41:23 +04:00