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 roles for database operations
User creation was failing with a JSON syntax error because the `roles` field (`List<String>`) was not being correctly serialized into a JSON array string for the database's `JSONB` column.
This change updates the `userRepository`'s configuration to use a custom `toJson` function. This function explicitly JSON-encodes the `roles` list before it's sent to the database client, resolving the error at the source without altering the generic repository or the User model.
0 commit comments