diff --git a/src/helpers/logger.ts b/src/helpers/logger.ts index c21aee7..45ad968 100644 --- a/src/helpers/logger.ts +++ b/src/helpers/logger.ts @@ -1,4 +1,5 @@ import { environment } from "@config/environment"; +import { timestampToReadable } from "@helpers/char"; import type { Stats } from "fs"; import { createWriteStream, @@ -10,8 +11,6 @@ import { import { EOL } from "os"; import { basename, join } from "path"; -import { timestampToReadable } from "./char"; - class Logger { private static instance: Logger; private static log: string = join(__dirname, "../../logs"); diff --git a/src/index.ts b/src/index.ts index e187c31..7cd8048 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import { logger } from "@helpers/logger"; -import { serverHandler } from "./server"; +import { serverHandler } from "@/server"; async function main(): Promise { try {