plsgivemeachane commited on
Commit
b7f8404
·
1 Parent(s): e5f07d1

Error checking 6

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -418,10 +418,10 @@ app.post("/auth/delete", async (req, res) => {
418
 
419
  app.post("/file/upload", async (req, res) => {
420
  // Try to write file
421
- fs.writeFileSync("uploads/test.txt", 'TEST');
422
 
423
  // List file in /uploads/
424
- const tests = fs.readFileSync("uploads/test.txt", "utf-8");
425
  console.log(tests)
426
 
427
 
 
418
 
419
  app.post("/file/upload", async (req, res) => {
420
  // Try to write file
421
+ fs.writeFileSync("uploads/test2.txt", 'TEST');
422
 
423
  // List file in /uploads/
424
+ const tests = fs.readFileSync("uploads/test2.txt", "utf-8");
425
  console.log(tests)
426
 
427