From a6b9935ce1a91910c8e66cfe6c51894af83bf8ce Mon Sep 17 00:00:00 2001 From: joseph le Date: Fri, 20 Oct 2023 09:38:14 +0700 Subject: [PATCH] update write for functions --- app/utils/addLogFunction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/utils/addLogFunction.js b/app/utils/addLogFunction.js index 83571bd..532e3fb 100644 --- a/app/utils/addLogFunction.js +++ b/app/utils/addLogFunction.js @@ -1,5 +1,5 @@ -import fs from "fs"; -import moment from "moment"; +const fs = require("fs"); +const moment = require("moment"); export const addLogFunction = async (fileName, data, functionName) => { try {