diff --git a/analytics-service/src/app.ts b/analytics-service/src/app.ts index b310eac82c..265e86aa7a 100644 --- a/analytics-service/src/app.ts +++ b/analytics-service/src/app.ts @@ -1,6 +1,6 @@ import { COMMON_CONNECTION_CONFIG, - DataBaseHelper, DatabaseServer, + DatabaseServer, LargePayloadContainer, MessageBrokerChannel, Migration, diff --git a/indexer-api-gateway/src/api/_dev/services/status.ts b/indexer-api-gateway/src/api/_dev/services/status.ts index 06a3803d7d..e82e9a4d7d 100644 --- a/indexer-api-gateway/src/api/_dev/services/status.ts +++ b/indexer-api-gateway/src/api/_dev/services/status.ts @@ -1,7 +1,6 @@ import { Controller, HttpCode, HttpStatus, Get, Inject } from '@nestjs/common'; import { ClientProxy, EventPattern } from '@nestjs/microservices'; import { - ApiInternalServerErrorResponse, ApiForbiddenResponse, ApiOkResponse, ApiOperation, diff --git a/indexer-service/src/helpers/ipfs-service.ts b/indexer-service/src/helpers/ipfs-service.ts index fc347d7d0b..f4a6ff86e6 100644 --- a/indexer-service/src/helpers/ipfs-service.ts +++ b/indexer-service/src/helpers/ipfs-service.ts @@ -21,7 +21,7 @@ export class IPFSService { timeout, } ); - return items.data; + return items.data; } catch (error) { throw new CustomError(String(error), error.response?.status) } diff --git a/policy-service/src/api/policy-process.ts b/policy-service/src/api/policy-process.ts index f28a240a68..99c6801ab5 100644 --- a/policy-service/src/api/policy-process.ts +++ b/policy-service/src/api/policy-process.ts @@ -1,7 +1,6 @@ import '../config.js' import { COMMON_CONNECTION_CONFIG, - DataBaseHelper, DatabaseServer, entities, Environment, @@ -26,7 +25,6 @@ import { PolicyValidator } from '../policy-engine/block-validators/index.js'; import process from 'process'; import { CommonVariables } from '../helpers/common-variables.js'; import { PolicyEvents } from '@guardian/interfaces'; -import { GridFSBucket } from 'mongodb'; import { SynchronizationService } from '../policy-engine/multi-policy-service/index.js'; import { Module } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; diff --git a/policy-service/src/policy-engine/blocks/report-block.ts b/policy-service/src/policy-engine/blocks/report-block.ts index b286ec38bc..0fc8a0ee13 100644 --- a/policy-service/src/policy-engine/blocks/report-block.ts +++ b/policy-service/src/policy-engine/blocks/report-block.ts @@ -9,7 +9,7 @@ import { PolicyUser } from '../policy-user.js'; import { PolicyUtils } from '../helpers/utils.js'; import { ExternalEvent, ExternalEventType } from '../interfaces/external-event.js'; import { getVCField, VcDocument, VpDocument } from '@guardian/common'; -import { FilterObject, FilterQuery } from '@mikro-orm/core'; +import { FilterObject } from '@mikro-orm/core'; /** * Report block diff --git a/policy-service/src/policy-engine/policy-components-utils.ts b/policy-service/src/policy-engine/policy-components-utils.ts index ddfa63e203..96042aea71 100644 --- a/policy-service/src/policy-engine/policy-components-utils.ts +++ b/policy-service/src/policy-engine/policy-components-utils.ts @@ -30,7 +30,6 @@ import { ExternalEvent } from './interfaces/external-event.js'; import { BlockTreeGenerator } from './block-tree-generator.js'; import { PolicyNavigationMap } from './interfaces/block-state.js'; import { ComponentsService } from './helpers/components-service.js'; -import { PopulatePath } from '@mikro-orm/mongodb'; /** * Policy tag helper diff --git a/queue-service/src/app.ts b/queue-service/src/app.ts index 5bc8be1934..fdfb94bd33 100644 --- a/queue-service/src/app.ts +++ b/queue-service/src/app.ts @@ -1,4 +1,4 @@ -import { ApplicationState, COMMON_CONNECTION_CONFIG, DataBaseHelper, DatabaseServer, MessageBrokerChannel, mongoForLoggingInitialization, NotificationService, PinoLogger, pinoLoggerInitialization } from '@guardian/common'; +import { ApplicationState, COMMON_CONNECTION_CONFIG, DatabaseServer, MessageBrokerChannel, mongoForLoggingInitialization, NotificationService, PinoLogger, pinoLoggerInitialization } from '@guardian/common'; import { ApplicationStates, GenerateUUIDv4 } from '@guardian/interfaces'; import { MikroORM } from '@mikro-orm/core'; import { MongoDriver } from '@mikro-orm/mongodb'; diff --git a/queue-service/src/queue-service/queue-service.ts b/queue-service/src/queue-service/queue-service.ts index f3c1401018..f3090aa028 100644 --- a/queue-service/src/queue-service/queue-service.ts +++ b/queue-service/src/queue-service/queue-service.ts @@ -1,6 +1,5 @@ import { DatabaseServer, MAP_TASKS_AGGREGATION_FILTERS, MessageError, MessageResponse, NatsService, Singleton } from '@guardian/common'; import { GenerateUUIDv4, ITask, OrderDirection, QueueEvents, WorkerEvents } from '@guardian/interfaces'; -import { FilterObject } from '@mikro-orm/core'; import { TaskEntity } from '../entity/task'; @Singleton