diff --git a/server/src/helpers/log-helper.ts b/server/src/helpers/log-helper.ts index 927a3194..36151eb5 100644 --- a/server/src/helpers/log-helper.ts +++ b/server/src/helpers/log-helper.ts @@ -90,7 +90,9 @@ export class LogHelper { */ public static async parseErrorLogs(): Promise { if (!fs.existsSync(LogHelper.ERRORS_FILE_PATH)) { - await fs.promises.open(LogHelper.ERRORS_FILE_PATH, 'w') + const fileHandle = await fs.promises.open(LogHelper.ERRORS_FILE_PATH, 'w') + + await fileHandle.close() } const errorFileContent = await fs.promises.readFile(