From 9bc4c0ba1e9329465576903650fd4a87252f16e4 Mon Sep 17 00:00:00 2001 From: Sinan Date: Thu, 3 Oct 2024 06:18:00 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20server=20imports=20updated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/types/entities.ts | 6 ++--- client/types/enum.ts | 3 +-- server/src/index.ts | 8 +++---- .../src/use_case/UnauthenticatedUseCases.ts | 2 +- .../use_case/admin/AuthenticationUseCase.ts | 4 ++-- server/src/use_case/admin/DoctorUseCase.ts | 6 ++--- server/src/use_case/admin/PatientUseCase.ts | 2 +- .../appointment/CreateAppointmentUseCase.ts | 22 +++++++++---------- .../appointment/GetAppointmentUseCase.ts | 5 ++--- .../appointment/UpdateAppointmentUseCase.ts | 2 +- server/src/use_case/chat/CreateChatUseCase.ts | 6 ++--- server/src/use_case/chat/GetChatUseCase.ts | 10 ++++----- .../use_case/doctor/AuthenticationUseCase.ts | 10 ++++----- .../notification/NotificationUseCae.ts | 2 +- .../use_case/patient/AuthenticationUseCase.ts | 10 ++++----- .../src/use_case/patient/PatientUseCases.ts | 8 +++---- .../prescription/CreatePrescriptionUseCase.ts | 6 ++--- server/src/use_case/slot/CreateSlotUseCase.ts | 4 ++-- server/src/use_case/slot/DeleteSlotUseCase.ts | 8 +++---- server/src/use_case/slot/GetSlotUseCase.ts | 2 +- server/src/use_case/slot/UpdateSlotUseCase.ts | 2 +- .../use_case/video/GetVideoSectionUseCase.ts | 6 ++--- server/src/utils/logger.ts | 4 ++-- 23 files changed, 68 insertions(+), 70 deletions(-) diff --git a/client/types/entities.ts b/client/types/entities.ts index 2495dd55..a7bec830 100644 --- a/client/types/entities.ts +++ b/client/types/entities.ts @@ -128,8 +128,8 @@ export interface IPrescription { export interface IMedication { readonly name: string; - readonly dosage: string; // e.g., '2 tablets' - readonly frequency: string; // e.g., 'twice a day' - readonly duration: string; // e.g., '5 days' + readonly dosage: string; + readonly frequency: string; + readonly duration: string; readonly additionalInstructions?: string; } diff --git a/client/types/enum.ts b/client/types/enum.ts index ad92335a..34b6d5ae 100644 --- a/client/types/enum.ts +++ b/client/types/enum.ts @@ -48,5 +48,4 @@ export enum PrescriptionStatus { PENDING = 'pending', ISSUED = 'issued', CANCELLED = 'cancelled', - } - \ No newline at end of file +} diff --git a/server/src/index.ts b/server/src/index.ts index 60d9afff..cb1bff8f 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -1,17 +1,17 @@ import express from "express"; import { createServer } from "http"; -import { connectDB } from "./config/connectDB"; -import routes from "./presentation/routers/index"; import cors from "cors"; import cookieParser from "cookie-parser"; import helmet from "helmet"; +import logger from "./utils/logger"; import bodyParser from "body-parser"; -import { webhook } from "./presentation/routers/appointment/AppointmentRoutes"; +import { connectDB } from "./config/connectDB"; +import routes from "./presentation/routers/index"; import { CLIENT_URL, PORT } from "./config/env"; import JWTService from "./infrastructure/services/JWTService"; import SocketServer from "./presentation/socket/SocketServer"; +import { webhook } from "./presentation/routers/appointment/AppointmentRoutes"; import VideoSocketManager from "./presentation/socket/VideoSocketManager"; -import logger from "./utils/logger"; const port = PORT || 8080; diff --git a/server/src/use_case/UnauthenticatedUseCases.ts b/server/src/use_case/UnauthenticatedUseCases.ts index 6da3ca04..dfd04ec6 100644 --- a/server/src/use_case/UnauthenticatedUseCases.ts +++ b/server/src/use_case/UnauthenticatedUseCases.ts @@ -1,5 +1,5 @@ -import IDoctor from "../domain/entities/IDoctor"; import IDoctorRepository from "../domain/interface/repositories/IDoctorRepository"; +import IDoctor from "../domain/entities/IDoctor"; import { PaginatedResult } from "../types"; export default class UnauthenticatedUseCases { diff --git a/server/src/use_case/admin/AuthenticationUseCase.ts b/server/src/use_case/admin/AuthenticationUseCase.ts index 09a39ded..0e53a09a 100644 --- a/server/src/use_case/admin/AuthenticationUseCase.ts +++ b/server/src/use_case/admin/AuthenticationUseCase.ts @@ -1,10 +1,10 @@ +import { IPasswordServiceRepository } from "../../domain/interface/services/IPasswordServiceRepository"; import IDoctorRepository from "../../domain/interface/repositories/IDoctorRepository"; +import IValidatorService from "../../domain/interface/services/IValidatorService"; import IOtpRepository from "../../domain/interface/repositories/IOtpRepository"; import IEmailService from "../../domain/interface/services/IEmailService"; import ITokenService from "../../domain/interface/services/ITokenService"; -import IValidatorService from "../../domain/interface/services/IValidatorService"; import CustomError from "../../domain/entities/CustomError"; -import { IPasswordServiceRepository } from "../../domain/interface/services/IPasswordServiceRepository"; import { StatusCode, UserRole } from "../../types"; export default class AuthenticationUseCase { diff --git a/server/src/use_case/admin/DoctorUseCase.ts b/server/src/use_case/admin/DoctorUseCase.ts index 8e26b5c4..f4517f53 100644 --- a/server/src/use_case/admin/DoctorUseCase.ts +++ b/server/src/use_case/admin/DoctorUseCase.ts @@ -1,9 +1,9 @@ -import IDoctor from "../../domain/entities/IDoctor"; -import CustomError from "../../domain/entities/CustomError"; import IDoctorRepository from "../../domain/interface/repositories/IDoctorRepository"; -import IEmailService from "../../domain/interface/services/IEmailService"; import IValidatorService from "../../domain/interface/services/IValidatorService"; +import IEmailService from "../../domain/interface/services/IEmailService"; import { DoctorsFilter, PaginatedResult, StatusCode } from "../../types"; +import CustomError from "../../domain/entities/CustomError"; +import IDoctor from "../../domain/entities/IDoctor"; import { CLIENT_URL } from "../../config/env"; export default class AdminDoctorUseCase { diff --git a/server/src/use_case/admin/PatientUseCase.ts b/server/src/use_case/admin/PatientUseCase.ts index fd044a20..aedd5983 100644 --- a/server/src/use_case/admin/PatientUseCase.ts +++ b/server/src/use_case/admin/PatientUseCase.ts @@ -1,6 +1,6 @@ import IPatientRepository from "../../domain/interface/repositories/IPatientRepository"; -import IPatient from "../../domain/entities/IPatient"; import IValidatorService from "../../domain/interface/services/IValidatorService"; +import IPatient from "../../domain/entities/IPatient"; import { PaginatedResult } from "../../types"; export default class AdminPatientUseCase { diff --git a/server/src/use_case/appointment/CreateAppointmentUseCase.ts b/server/src/use_case/appointment/CreateAppointmentUseCase.ts index 5d56e87e..707da229 100644 --- a/server/src/use_case/appointment/CreateAppointmentUseCase.ts +++ b/server/src/use_case/appointment/CreateAppointmentUseCase.ts @@ -1,21 +1,21 @@ -import CustomError from "../../domain/entities/CustomError"; -import IAppointmentRepository from "../../domain/interface/repositories/IAppointmentRepository"; -import ISlotRepository from "../../domain/interface/repositories/ISlotRepository"; -import IValidatorService from "../../domain/interface/services/IValidatorService"; -import IPaymentService from "../../domain/interface/services/IPaymentService"; -import IPaymentRepository from "../../domain/interface/repositories/IPaymentRepository"; -import IPayment, { PaymentStatus } from "../../domain/entities/IPayment"; import IAppointment, { AppointmentStatus, AppointmentType } from "../../domain/entities/IAppointment"; -import { StatusCode } from "../../types"; import IVideoSectionRepository from "../../domain/interface/repositories/IVideoSectionRepository"; +import IAppointmentRepository from "../../domain/interface/repositories/IAppointmentRepository"; import IPatientRepository from "../../domain/interface/repositories/IPatientRepository"; +import IPaymentRepository from "../../domain/interface/repositories/IPaymentRepository"; import IDoctorRepository from "../../domain/interface/repositories/IDoctorRepository"; -import IDoctor from "../../domain/entities/IDoctor"; -import IPatient from "../../domain/entities/IPatient"; +import ISlotRepository from "../../domain/interface/repositories/ISlotRepository"; +import IValidatorService from "../../domain/interface/services/IValidatorService"; +import IPaymentService from "../../domain/interface/services/IPaymentService"; import { VideoSectionStatus } from "../../domain/entities/IVideoChatSection"; +import IPayment, { PaymentStatus } from "../../domain/entities/IPayment"; +import IUUIDService from "../../domain/interface/services/IUUIDService"; import { addMinutes, parse, format } from "../../utils/date-formatter"; +import CustomError from "../../domain/entities/CustomError"; +import IPatient from "../../domain/entities/IPatient"; +import IDoctor from "../../domain/entities/IDoctor"; import { CLIENT_URL } from "../../config/env"; -import IUUIDService from "../../domain/interface/services/IUUIDService"; +import { StatusCode } from "../../types"; export default class AppointmentUseCase { bookingAmount: number; diff --git a/server/src/use_case/appointment/GetAppointmentUseCase.ts b/server/src/use_case/appointment/GetAppointmentUseCase.ts index 06d00ac1..202c265b 100644 --- a/server/src/use_case/appointment/GetAppointmentUseCase.ts +++ b/server/src/use_case/appointment/GetAppointmentUseCase.ts @@ -1,11 +1,10 @@ +import IAppointment, { AppointmentStatus, IExtendedAppointment } from "../../domain/entities/IAppointment"; +import IPrescriptionRepository from "../../domain/interface/repositories/IPrescriptionRepository"; import IAppointmentRepository from "../../domain/interface/repositories/IAppointmentRepository"; import IPaymentRepository from "../../domain/interface/repositories/IPaymentRepository"; -import IPrescriptionRepository from "../../domain/interface/repositories/IPrescriptionRepository"; import IValidatorService from "../../domain/interface/services/IValidatorService"; import CustomError from "../../domain/entities/CustomError"; -import IAppointment, { AppointmentStatus, IExtendedAppointment } from "../../domain/entities/IAppointment"; import { PaginatedResult, StatusCode } from "../../types"; -import logger from "../../utils/logger"; export default class GetAppointmentUseCase { constructor( diff --git a/server/src/use_case/appointment/UpdateAppointmentUseCase.ts b/server/src/use_case/appointment/UpdateAppointmentUseCase.ts index 07f90f39..55261a13 100644 --- a/server/src/use_case/appointment/UpdateAppointmentUseCase.ts +++ b/server/src/use_case/appointment/UpdateAppointmentUseCase.ts @@ -1,9 +1,9 @@ import IAppointmentRepository from "../../domain/interface/repositories/IAppointmentRepository"; +import IVideoSectionRepository from "../../domain/interface/repositories/IVideoSectionRepository"; import INotificationRepository from "../../domain/interface/repositories/INotificationRepository"; import IValidatorService from "../../domain/interface/services/IValidatorService"; import { AppointmentStatus } from "../../domain/entities/IAppointment"; import { NotificationTypes } from "../../domain/entities/INotification"; -import IVideoSectionRepository from "../../domain/interface/repositories/IVideoSectionRepository"; import { VideoSectionStatus } from "../../domain/entities/IVideoChatSection"; export default class UpdateAppointmentUseCase { diff --git a/server/src/use_case/chat/CreateChatUseCase.ts b/server/src/use_case/chat/CreateChatUseCase.ts index d2c00bd7..3dd0c572 100644 --- a/server/src/use_case/chat/CreateChatUseCase.ts +++ b/server/src/use_case/chat/CreateChatUseCase.ts @@ -1,9 +1,9 @@ -import CustomError from "../../domain/entities/CustomError"; -import IChatRepository from "../../domain/interface/repositories/IChatRepository"; -import IDoctorRepository from "../../domain/interface/repositories/IDoctorRepository"; import IMessageRepository from "../../domain/interface/repositories/IMessageRepository"; import IPatientRepository from "../../domain/interface/repositories/IPatientRepository"; +import IDoctorRepository from "../../domain/interface/repositories/IDoctorRepository"; +import IChatRepository from "../../domain/interface/repositories/IChatRepository"; import IValidatorService from "../../domain/interface/services/IValidatorService"; +import CustomError from "../../domain/entities/CustomError"; import { StatusCode } from "../../types"; export default class CreateChatUseCase { diff --git a/server/src/use_case/chat/GetChatUseCase.ts b/server/src/use_case/chat/GetChatUseCase.ts index b09334f6..5fd0d68e 100644 --- a/server/src/use_case/chat/GetChatUseCase.ts +++ b/server/src/use_case/chat/GetChatUseCase.ts @@ -1,12 +1,12 @@ -import CustomError from "../../domain/entities/CustomError"; -import IChat from "../../domain/entities/IChat"; -import IMessage from "../../domain/entities/IMessage"; -import IPatient from "../../domain/entities/IPatient"; -import IChatRepository from "../../domain/interface/repositories/IChatRepository"; import IMessageRepository from "../../domain/interface/repositories/IMessageRepository"; import IPatientRepository from "../../domain/interface/repositories/IPatientRepository"; +import IChatRepository from "../../domain/interface/repositories/IChatRepository"; import IValidatorService from "../../domain/interface/services/IValidatorService"; +import CustomError from "../../domain/entities/CustomError"; import { PaginatedResult, StatusCode } from "../../types"; +import IMessage from "../../domain/entities/IMessage"; +import IPatient from "../../domain/entities/IPatient"; +import IChat from "../../domain/entities/IChat"; export default class GetChatUseCase { constructor( diff --git a/server/src/use_case/doctor/AuthenticationUseCase.ts b/server/src/use_case/doctor/AuthenticationUseCase.ts index 90843cb0..9c4d8ec0 100644 --- a/server/src/use_case/doctor/AuthenticationUseCase.ts +++ b/server/src/use_case/doctor/AuthenticationUseCase.ts @@ -1,14 +1,14 @@ -import IDoctor from "../../domain/entities/IDoctor"; +import { IPasswordServiceRepository } from "../../domain/interface/services/IPasswordServiceRepository"; +import ICloudStorageService from "../../domain/interface/services/ICloudStorageService"; import IDoctorRepository from "../../domain/interface/repositories/IDoctorRepository"; +import IValidatorService from "../../domain/interface/services/IValidatorService"; import IOtpRepository from "../../domain/interface/repositories/IOtpRepository"; -import ICloudStorageService from "../../domain/interface/services/ICloudStorageService"; import IEmailService from "../../domain/interface/services/IEmailService"; import ITokenService from "../../domain/interface/services/ITokenService"; -import IValidatorService from "../../domain/interface/services/IValidatorService"; +import { AWS_REGION, CLIENT_URL, S3_BUCKET_NAME } from "../../config/env"; import CustomError from "../../domain/entities/CustomError"; -import { IPasswordServiceRepository } from "../../domain/interface/services/IPasswordServiceRepository"; +import IDoctor from "../../domain/entities/IDoctor"; import { StatusCode, UserRole } from "../../types"; -import { AWS_REGION, CLIENT_URL, S3_BUCKET_NAME } from "../../config/env"; export default class AuthenticationUseCase { constructor( diff --git a/server/src/use_case/notification/NotificationUseCae.ts b/server/src/use_case/notification/NotificationUseCae.ts index f93fadb2..33af8b15 100644 --- a/server/src/use_case/notification/NotificationUseCae.ts +++ b/server/src/use_case/notification/NotificationUseCae.ts @@ -1,6 +1,6 @@ -import INotification from "../../domain/entities/INotification"; import INotificationRepository from "../../domain/interface/repositories/INotificationRepository"; import IValidatorService from "../../domain/interface/services/IValidatorService"; +import INotification from "../../domain/entities/INotification"; export default class NotificationUseCase { constructor( diff --git a/server/src/use_case/patient/AuthenticationUseCase.ts b/server/src/use_case/patient/AuthenticationUseCase.ts index 1def1611..8e285dcb 100644 --- a/server/src/use_case/patient/AuthenticationUseCase.ts +++ b/server/src/use_case/patient/AuthenticationUseCase.ts @@ -1,11 +1,11 @@ -import ITokenService from "../../domain/interface/services/ITokenService"; -import IOtpRepository from "../../domain/interface/repositories/IOtpRepository"; +import { IPasswordServiceRepository } from "../../domain/interface/services/IPasswordServiceRepository"; import IPatientRepository from "../../domain/interface/repositories/IPatientRepository"; -import IEmailService from "../../domain/interface/services/IEmailService"; -import IPatient from "../../domain/entities/IPatient"; import IValidatorService from "../../domain/interface/services/IValidatorService"; +import IOtpRepository from "../../domain/interface/repositories/IOtpRepository"; +import ITokenService from "../../domain/interface/services/ITokenService"; +import IEmailService from "../../domain/interface/services/IEmailService"; import CustomError from "../../domain/entities/CustomError"; -import { IPasswordServiceRepository } from "../../domain/interface/services/IPasswordServiceRepository"; +import IPatient from "../../domain/entities/IPatient"; import { StatusCode, UserRole } from "../../types"; import { CLIENT_URL } from "../../config/env"; diff --git a/server/src/use_case/patient/PatientUseCases.ts b/server/src/use_case/patient/PatientUseCases.ts index 134e3727..1b0b12dc 100644 --- a/server/src/use_case/patient/PatientUseCases.ts +++ b/server/src/use_case/patient/PatientUseCases.ts @@ -1,12 +1,12 @@ +import IVideoSectionRepository from "../../domain/interface/repositories/IVideoSectionRepository"; import IPatientRepository from "../../domain/interface/repositories/IPatientRepository"; import ICloudStorageService from "../../domain/interface/services/ICloudStorageService"; -import IPatient from "../../domain/entities/IPatient"; +import IChatRepository from "../../domain/interface/repositories/IChatRepository"; import IValidatorService from "../../domain/interface/services/IValidatorService"; +import { AWS_REGION, S3_BUCKET_NAME } from "../../config/env"; import CustomError from "../../domain/entities/CustomError"; +import IPatient from "../../domain/entities/IPatient"; import { StatusCode } from "../../types"; -import { AWS_REGION, S3_BUCKET_NAME } from "../../config/env"; -import IChatRepository from "../../domain/interface/repositories/IChatRepository"; -import IVideoSectionRepository from "../../domain/interface/repositories/IVideoSectionRepository"; export default class PatientUseCase { constructor( diff --git a/server/src/use_case/prescription/CreatePrescriptionUseCase.ts b/server/src/use_case/prescription/CreatePrescriptionUseCase.ts index 1b5eed49..b87de2fe 100644 --- a/server/src/use_case/prescription/CreatePrescriptionUseCase.ts +++ b/server/src/use_case/prescription/CreatePrescriptionUseCase.ts @@ -1,8 +1,8 @@ -import CustomError from "../../domain/entities/CustomError"; -import IPrescription, { PrescriptionStatus } from "../../domain/entities/IPrescription"; -import IAppointmentRepository from "../../domain/interface/repositories/IAppointmentRepository"; import IPrescriptionRepository from "../../domain/interface/repositories/IPrescriptionRepository"; +import IAppointmentRepository from "../../domain/interface/repositories/IAppointmentRepository"; +import IPrescription, { PrescriptionStatus } from "../../domain/entities/IPrescription"; import IValidatorService from "../../domain/interface/services/IValidatorService"; +import CustomError from "../../domain/entities/CustomError"; import { StatusCode } from "../../types"; export default class CreatePrescriptionUseCase { diff --git a/server/src/use_case/slot/CreateSlotUseCase.ts b/server/src/use_case/slot/CreateSlotUseCase.ts index c0fe03ed..9c07f8a5 100644 --- a/server/src/use_case/slot/CreateSlotUseCase.ts +++ b/server/src/use_case/slot/CreateSlotUseCase.ts @@ -1,9 +1,9 @@ -import { parse, format, addHours } from "../../utils/date-formatter"; import ISlotRepository from "../../domain/interface/repositories/ISlotRepository"; import IValidatorService from "../../domain/interface/services/IValidatorService"; +import ISlot, { SlotStatus, Days } from "../../domain/entities/ISlot"; +import { parse, format, addHours } from "../../utils/date-formatter"; import CustomError from "../../domain/entities/CustomError"; import { StatusCode } from "../../types"; -import ISlot, { SlotStatus, Days } from "../../domain/entities/ISlot"; export default class CreateSlotUseCase { protected interval: number; diff --git a/server/src/use_case/slot/DeleteSlotUseCase.ts b/server/src/use_case/slot/DeleteSlotUseCase.ts index ac00fe2d..3e4bba15 100644 --- a/server/src/use_case/slot/DeleteSlotUseCase.ts +++ b/server/src/use_case/slot/DeleteSlotUseCase.ts @@ -1,11 +1,11 @@ -import ISlotRepository from "../../domain/interface/repositories/ISlotRepository"; +import INotificationRepository from "../../domain/interface/repositories/INotificationRepository"; import IAppointmentRepository from "../../domain/interface/repositories/IAppointmentRepository"; -import CustomError from "../../domain/entities/CustomError"; +import ISlotRepository from "../../domain/interface/repositories/ISlotRepository"; import IValidatorService from "../../domain/interface/services/IValidatorService"; -import INotificationRepository from "../../domain/interface/repositories/INotificationRepository"; -import ISlot, { Days } from "../../domain/entities/ISlot"; import { NotificationTypes } from "../../domain/entities/INotification"; import { AppointmentStatus } from "../../domain/entities/IAppointment"; +import CustomError from "../../domain/entities/CustomError"; +import ISlot, { Days } from "../../domain/entities/ISlot"; import { StatusCode } from "../../types"; export default class DeleteSlotUseCase { diff --git a/server/src/use_case/slot/GetSlotUseCase.ts b/server/src/use_case/slot/GetSlotUseCase.ts index 27ecf492..a2c672d5 100644 --- a/server/src/use_case/slot/GetSlotUseCase.ts +++ b/server/src/use_case/slot/GetSlotUseCase.ts @@ -1,5 +1,5 @@ -import ISlotRepository from "../../domain/interface/repositories/ISlotRepository"; import IAppointmentRepository from "../../domain/interface/repositories/IAppointmentRepository"; +import ISlotRepository from "../../domain/interface/repositories/ISlotRepository"; import IValidatorService from "../../domain/interface/services/IValidatorService"; import ISlot, { Days } from "../../domain/entities/ISlot"; import { addHours } from "../../utils/date-formatter"; diff --git a/server/src/use_case/slot/UpdateSlotUseCase.ts b/server/src/use_case/slot/UpdateSlotUseCase.ts index 361c451b..db3d1ede 100644 --- a/server/src/use_case/slot/UpdateSlotUseCase.ts +++ b/server/src/use_case/slot/UpdateSlotUseCase.ts @@ -1,6 +1,6 @@ -import ISlot from "../../domain/entities/ISlot"; import ISlotRepository from "../../domain/interface/repositories/ISlotRepository"; import IValidatorService from "../../domain/interface/services/IValidatorService"; +import ISlot from "../../domain/entities/ISlot"; export default class UpdateSlotUseCase { constructor( diff --git a/server/src/use_case/video/GetVideoSectionUseCase.ts b/server/src/use_case/video/GetVideoSectionUseCase.ts index 145c489b..40704c3f 100644 --- a/server/src/use_case/video/GetVideoSectionUseCase.ts +++ b/server/src/use_case/video/GetVideoSectionUseCase.ts @@ -1,7 +1,7 @@ -import IAppointment, { AppointmentStatus } from "../../domain/entities/IAppointment"; -import IVideoSection, { VideoSectionStatus } from "../../domain/entities/IVideoChatSection"; -import IAppointmentRepository from "../../domain/interface/repositories/IAppointmentRepository"; import IVideoSectionRepository from "../../domain/interface/repositories/IVideoSectionRepository"; +import IAppointmentRepository from "../../domain/interface/repositories/IAppointmentRepository"; +import IVideoSection, { VideoSectionStatus } from "../../domain/entities/IVideoChatSection"; +import IAppointment, { AppointmentStatus } from "../../domain/entities/IAppointment"; import IValidatorService from "../../domain/interface/services/IValidatorService"; import { addDays } from "../../utils/date-formatter"; diff --git a/server/src/utils/logger.ts b/server/src/utils/logger.ts index f23d7563..a6735f8d 100644 --- a/server/src/utils/logger.ts +++ b/server/src/utils/logger.ts @@ -1,7 +1,7 @@ import { createLogger, format, transports } from "winston"; -import path from "path"; -import "winston-daily-rotate-file"; import { NODE_ENV } from "../config/env"; +import "winston-daily-rotate-file"; +import path from "path"; const logDirectory = path.resolve(path.join(__dirname,'../../'), "logs");