diff --git a/backend/src/bundles/chat/chat.controller.ts b/backend/src/bundles/chat/chat.controller.ts index ca161c2d9..120e3c906 100644 --- a/backend/src/bundles/chat/chat.controller.ts +++ b/backend/src/bundles/chat/chat.controller.ts @@ -9,12 +9,12 @@ import { ApiPath } from '~/common/enums/enums.js'; import { HttpCode, HTTPMethod } from '~/common/http/http.js'; import { type Logger } from '~/common/logger/logger.js'; import { MAX_TOKEN } from '~/common/services/open-ai/libs/constants/constants.js'; - import { ChatPath, OpenAIRole, -} from '../../common/services/open-ai/libs/enums/enums.js'; -import { type OpenAIService } from '../../common/services/open-ai/open-ai.service.js'; +} from '~/common/services/open-ai/libs/enums/enums.js'; +import { type OpenAIService } from '~/common/services/open-ai/open-ai.service.js'; + import { type ChatService } from './chat.service.js'; import { type GenerateTextRequestDto } from './libs/types/types.js'; import { textGenerationValidationSchema } from './libs/validation-schemas/validation-schemas.js'; diff --git a/backend/src/common/plugins/session/session.plugin.ts b/backend/src/common/plugins/session/session.plugin.ts index 047a7376e..c09beb8c3 100644 --- a/backend/src/common/plugins/session/session.plugin.ts +++ b/backend/src/common/plugins/session/session.plugin.ts @@ -3,8 +3,7 @@ import fastifySession from '@fastify/session'; import fp from 'fastify-plugin'; import { type BaseConfig } from '~/common/config/base-config.package.js'; - -import { ControllerHook } from '../libs/enums/enums.js'; +import { ControllerHook } from '~/common/plugins/libs/enums/enums.js'; type Options = { services: { diff --git a/backend/src/common/server-application/base-server-app.ts b/backend/src/common/server-application/base-server-app.ts index af0cf18be..8cba5608a 100644 --- a/backend/src/common/server-application/base-server-app.ts +++ b/backend/src/common/server-application/base-server-app.ts @@ -17,13 +17,13 @@ import { ServerErrorType } from '~/common/enums/enums.js'; import { type ValidationError } from '~/common/exceptions/exceptions.js'; import { HttpCode, HttpError } from '~/common/http/http.js'; import { type Logger } from '~/common/logger/logger.js'; +import { session } from '~/common/plugins/session/session.plugin.js'; import { type ServerCommonErrorResponse, type ServerValidationErrorResponse, type ValidationSchema, } from '~/common/types/types.js'; -import { session } from '../plugins/plugins.js'; import { type ServerApp, type ServerAppApi, diff --git a/backend/src/common/services/services.ts b/backend/src/common/services/services.ts index 82acc8535..5a657b695 100644 --- a/backend/src/common/services/services.ts +++ b/backend/src/common/services/services.ts @@ -1,4 +1,5 @@ -import { config } from '../config/config.js'; +import { config } from '~/common/config/config.js'; + import { CryptService } from './crypt/crypt.service.js'; import { FileService } from './file/file.service.js'; import { OpenAIService } from './open-ai/open-ai.service.js';