Commit fbbc5dc
committed
fix: preserve relation and locale data in lifecycle hooks (#1040)
Fixes an issue where lifecycle results only contained relation counts instead of full relation objects, and locale data was not being properly passed to getEntry. The fix ensures:
- Complete entries with full relations are fetched instead of using lifecycle results with counts
- Locale from lifecycle result is passed to maintain i18n consistency
- Status 'published' is always passed to ensure only published content is indexed
- Added comprehensive tests for the fix1 parent 4983e12 commit fbbc5dc
File tree
6 files changed
+690
-15
lines changed- server/src
- __tests__
- utils
- services
- content-types
- lifecycle
- meilisearch
6 files changed
+690
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| 180 | + | |
| 181 | + | |
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
| |||
203 | 206 | | |
204 | 207 | | |
205 | 208 | | |
| 209 | + | |
| 210 | + | |
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
| |||
0 commit comments