You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(api): correctly serialize user preferences for JSONB seeding
The admin user seeding was failing with a JSON syntax error. This was caused by passing raw lists of complex objects (e.g., `List<Category>`) to the database driver for `JSONB` columns, which the driver cannot serialize automatically.
This change updates the seeding logic to use the `UserContentPreferences.toJson()` method, which correctly serializes the data into a JSON-compatible format before insertion. This resolves the final startup error.
0 commit comments