From 4836de517c83cdddd53dc94269b8fccb1f3f38fe Mon Sep 17 00:00:00 2001 From: GreenyDev Date: Fri, 28 Apr 2023 20:47:15 -0400 Subject: [PATCH 1/3] tmp --- app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index 7d954bf7..cfbb97c8 100644 --- a/app.js +++ b/app.js @@ -14,11 +14,11 @@ import bcrypt from "bcrypt"; const PORT = process.env.PORT || 3000; const __dirname = process.cwd(); const ACTIVE_CODES = new Set(); -if (!fs.existsSync("./memory.txt")) { - fs.writeFileSync("./memory.txt", "", "utf-8"); +if (!fs.existsSync("./tmp/memory.txt")) { + fs.writeFileSync("./tmp/memory.txt", "", "utf-8"); } let TOKENS = fs - .readFileSync("./memory.txt", "utf-8") + .readFileSync("./tmp/memory.txt", "utf-8") .trim() .split("\n") .map((token) => { @@ -138,7 +138,7 @@ app.post("/validate-otp", (req, res) => { }); fs.writeFileSync( - "./memory.txt", + "./tmp/memory.txt", TOKENS.map((token) => { return `${token.id}:${token.token}:${token.expiration}`; }).join("\n"), From ac35b7a61c65e51021f803e39b13a545c9e674ba Mon Sep 17 00:00:00 2001 From: GreenyDev Date: Fri, 28 Apr 2023 20:49:20 -0400 Subject: [PATCH 2/3] tmp --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index cfbb97c8..2c7122b0 100644 --- a/app.js +++ b/app.js @@ -10,7 +10,7 @@ import nodemailer from "nodemailer"; import * as uuid from "uuid"; import fs from "node:fs"; import bcrypt from "bcrypt"; - +// fx const PORT = process.env.PORT || 3000; const __dirname = process.cwd(); const ACTIVE_CODES = new Set(); From 6c7d34b59be3d24da849a26c547348ccb6ac6493 Mon Sep 17 00:00:00 2001 From: GreenyDev Date: Fri, 28 Apr 2023 20:50:40 -0400 Subject: [PATCH 3/3] tmp --- tmp/memory.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 tmp/memory.txt diff --git a/tmp/memory.txt b/tmp/memory.txt new file mode 100644 index 00000000..d5dd2df5 --- /dev/null +++ b/tmp/memory.txt @@ -0,0 +1 @@ +epic \ No newline at end of file