diff --git a/apps/meteor/ee/server/lib/audit/endpoints.ts b/apps/meteor/ee/server/api/audit.ts similarity index 91% rename from apps/meteor/ee/server/lib/audit/endpoints.ts rename to apps/meteor/ee/server/api/audit.ts index bb41c133a4d3..748368f0d569 100644 --- a/apps/meteor/ee/server/lib/audit/endpoints.ts +++ b/apps/meteor/ee/server/api/audit.ts @@ -3,9 +3,9 @@ import { Rooms, AuditLog } from '@rocket.chat/models'; import type { PaginatedRequest, PaginatedResult } from '@rocket.chat/rest-typings'; import Ajv from 'ajv'; -import { API } from '../../../../app/api/server/api'; -import { getPaginationItems } from '../../../../app/api/server/helpers/getPaginationItems'; -import { findUsersOfRoom } from '../../../../server/lib/findUsersOfRoom'; +import { API } from '../../../app/api/server/api'; +import { getPaginationItems } from '../../../app/api/server/helpers/getPaginationItems'; +import { findUsersOfRoom } from '../../../server/lib/findUsersOfRoom'; const ajv = new Ajv({ coerceTypes: true, diff --git a/apps/meteor/ee/server/startup/audit.ts b/apps/meteor/ee/server/startup/audit.ts index 7b1e5000648c..9f8135a16a65 100644 --- a/apps/meteor/ee/server/startup/audit.ts +++ b/apps/meteor/ee/server/startup/audit.ts @@ -4,7 +4,7 @@ import { createPermissions } from '../lib/audit/startup'; await License.onLicense('auditing', async () => { await import('../lib/audit/methods'); - await import('../lib/audit/endpoints'); + await import('../api/audit'); await createPermissions(); });