From c34a61569daf4e5d15f0d0b813191bf5b39e4626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Thu, 26 Jun 2025 12:16:56 +0200 Subject: [PATCH] Revert event-service changes --- src/lib/features/events/event-service.ts | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/lib/features/events/event-service.ts b/src/lib/features/events/event-service.ts index 07244a89a0..b55ddf0bd5 100644 --- a/src/lib/features/events/event-service.ts +++ b/src/lib/features/events/event-service.ts @@ -16,7 +16,7 @@ import type { IPrivateProjectChecker } from '../private-project/privateProjectCh import type { ProjectAccess } from '../private-project/privateProjectStore.js'; import type { IAccessReadModel } from '../access/access-read-model-type.js'; import lodash from 'lodash'; -import type { IEventList, IBaseEvent, IEvent } from '../../events/index.js'; +import type { IEventList, IBaseEvent } from '../../events/index.js'; import type { ITag } from '../../tags/index.js'; const { isEqual } = lodash; @@ -103,28 +103,6 @@ export default class EventService { }; } - async searchUserEvents( - search: IEventSearchParams, - ): Promise<{ events: IEvent[] }> { - const queryParams = this.convertToDbParams(search); - - const events = await this.eventStore.searchEvents( - { - limit: search.limit, - offset: search.offset, - query: search.query, - types: search.types, - }, - queryParams, - { - withIp: this.isEnterprise, - }, - ); - return { - events, - }; - } - onEvent( eventName: string | symbol, listener: (...args: any[]) => void,