mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-05-23 04:45:06 +02:00
foreignKey/localKey were swapped on the ChatMessage → ChatSession
relation. Per Lucid's belongsTo contract, foreignKey is the column
on the child model and localKey is on the parent — so this must be
{ foreignKey: 'session_id', localKey: 'id' }, mirroring the inverse
hasMany on ChatSession.
The relation is not currently preloaded anywhere in the codebase, so
no runtime behavior changes today; this closes a latent bug that
would have broken any future preload('session') call.
|
||
|---|---|---|
| .. | ||
| benchmark_result.ts | ||
| benchmark_setting.ts | ||
| chat_message.ts | ||
| chat_session.ts | ||
| collection_manifest.ts | ||
| custom_library_source.ts | ||
| installed_resource.ts | ||
| kb_ingest_state.ts | ||
| kb_ratio_registry.ts | ||
| kv_store.ts | ||
| map_marker.ts | ||
| service.ts | ||
| wikipedia_selection.ts | ||