Skip to content

Commit 415f2a1

Browse files
committed
feat: update search to use repetition.delta field instead of event.payload
- Add search in repetition.delta field (JSON string format) - Keep fallback to event.payload fields for backward compatibility - Search now looks in repetition.delta as primary source since payload data moved to repetitions collection
1 parent 5907e7a commit 415f2a1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/models/eventsFactory.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,12 @@ class EventsFactory extends Factory {
292292
const searchFilter = search.trim().length > 0
293293
? {
294294
$or: [
295+
{
296+
'repetition.delta': {
297+
$regex: escapedSearch,
298+
$options: 'i',
299+
},
300+
},
295301
{
296302
'event.payload.title': {
297303
$regex: escapedSearch,

0 commit comments

Comments
 (0)