diff --git a/package.json b/package.json index b9979f18..80896794 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hawk.api", - "version": "1.2.24", + "version": "1.2.25", "main": "index.ts", "license": "BUSL-1.1", "scripts": { diff --git a/src/models/eventsFactory.js b/src/models/eventsFactory.js index 9b27ee4b..91e123e4 100644 --- a/src/models/eventsFactory.js +++ b/src/models/eventsFactory.js @@ -292,6 +292,12 @@ class EventsFactory extends Factory { const searchFilter = search.trim().length > 0 ? { $or: [ + { + 'repetition.delta': { + $regex: escapedSearch, + $options: 'i', + }, + }, { 'event.payload.title': { $regex: escapedSearch, @@ -591,7 +597,6 @@ class EventsFactory extends Factory { /** * Returns Event repetitions * - * @param {string|ObjectID} eventId - Event's id, could be repetitionId in case when we want to get repetitions portion by one repetition * @param {string|ObjectID} originalEventId - id of the original event * @param {Number} limit - count limitations * @param {Number} cursor - pointer to the next repetition