From fcfb4924b9504dbb5604b06f746555aef6e66ca2 Mon Sep 17 00:00:00 2001 From: blazejpass Date: Wed, 8 Nov 2023 13:07:05 +0100 Subject: [PATCH] Fix lint suggestions. Fix module shared import. --- apps/server/src/modules/tldraw/repo/tldraw-board.repo.ts | 2 +- apps/server/src/modules/tldraw/repo/tldraw.repo.spec.ts | 2 +- apps/server/src/modules/tldraw/service/tldraw.service.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/server/src/modules/tldraw/repo/tldraw-board.repo.ts b/apps/server/src/modules/tldraw/repo/tldraw-board.repo.ts index 0853173104b..b505218d990 100644 --- a/apps/server/src/modules/tldraw/repo/tldraw-board.repo.ts +++ b/apps/server/src/modules/tldraw/repo/tldraw-board.repo.ts @@ -18,7 +18,7 @@ export class TldrawBoardRepo { public mdb: MongodbPersistence; - constructor(private readonly configService: ConfigService) { + constructor(public readonly configService: ConfigService) { this.connectionString = this.configService.get('CONNECTION_STRING'); this.collectionName = this.configService.get('TLDRAW_DB_COLLECTION_NAME') ?? 'drawings'; this.flushSize = this.configService.get('TLDRAW_DB_FLUSH_SIZE') ?? 400; diff --git a/apps/server/src/modules/tldraw/repo/tldraw.repo.spec.ts b/apps/server/src/modules/tldraw/repo/tldraw.repo.spec.ts index fb6d3c4513f..75562c4dffd 100644 --- a/apps/server/src/modules/tldraw/repo/tldraw.repo.spec.ts +++ b/apps/server/src/modules/tldraw/repo/tldraw.repo.spec.ts @@ -3,7 +3,7 @@ import { Test, TestingModule } from '@nestjs/testing'; import { cleanupCollections } from '@shared/testing'; import { tldrawEntityFactory } from '@src/modules/tldraw/factory'; import { TldrawDrawing } from '@src/modules/tldraw/entities'; -import { MongoMemoryDatabaseModule } from '@shared/infra/database'; +import { MongoMemoryDatabaseModule } from '@infra/database'; import { TldrawRepo } from './tldraw.repo'; describe(TldrawRepo.name, () => { diff --git a/apps/server/src/modules/tldraw/service/tldraw.service.spec.ts b/apps/server/src/modules/tldraw/service/tldraw.service.spec.ts index 7411adc8264..936c26ba508 100644 --- a/apps/server/src/modules/tldraw/service/tldraw.service.spec.ts +++ b/apps/server/src/modules/tldraw/service/tldraw.service.spec.ts @@ -1,6 +1,6 @@ import { Test, TestingModule } from '@nestjs/testing'; import { EntityManager } from '@mikro-orm/mongodb'; -import { MongoMemoryDatabaseModule } from '@shared/infra/database'; +import { MongoMemoryDatabaseModule } from '@infra/database'; import { cleanupCollections } from '@shared/testing'; import { TldrawDrawing } from '../entities'; import { tldrawEntityFactory } from '../factory';