From 4650dadc1d37550a3d1d50d1a8a3cba6770df547 Mon Sep 17 00:00:00 2001 From: Andrei Kondratov Date: Fri, 6 Dec 2024 20:56:24 +0500 Subject: [PATCH] fix linter --- packages/server/db.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/server/db.ts b/packages/server/db.ts index b60300a..ef67f19 100644 --- a/packages/server/db.ts +++ b/packages/server/db.ts @@ -1,9 +1,9 @@ -import dotenv from 'dotenv'; -import path from 'path'; -import { Client } from 'pg'; +import dotenv from 'dotenv' +import path from 'path' +import { Client } from 'pg' -const PATH_TO_ENV_DEV = path.resolve(__dirname, '../../../.env'); -const PATH_TO_ENV_PROD = path.resolve(__dirname, '../../.env'); +const PATH_TO_ENV_DEV = path.resolve(__dirname, '../../../.env') +const PATH_TO_ENV_PROD = path.resolve(__dirname, '../../.env') dotenv.config({ path: process.env.NODE_ENV === 'production' ? PATH_TO_ENV_PROD : PATH_TO_ENV_DEV, // Путь к корневому .env файлу