Skip to content

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
C4illin committed May 24, 2024
1 parent 64f25f9 commit 55e5b36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Binary file modified bun.lockb
Binary file not shown.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@elysiajs/html": "^1.0.2",
"@elysiajs/jwt": "^1.0.2",
"@elysiajs/static": "^1.0.3",
"elysia": "^1.0.21",
"elysia": "^1.0.22",
"sharp": "^0.33.4"
},
"module": "src/index.tsx",
Expand All @@ -22,12 +22,12 @@
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
"@kitajs/ts-html-plugin": "^4.0.1",
"@total-typescript/ts-reset": "^0.5.1",
"@types/bun": "^1.1.2",
"@types/bun": "^1.1.3",
"@types/eslint": "^8.56.10",
"@types/node": "^20.12.12",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.5",
Expand Down
5 changes: 4 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { randomUUID } from "node:crypto";
import { mkdir, unlink } from "node:fs/promises";
import { mkdir, unlink, rmdir } from "node:fs/promises";
import cookie from "@elysiajs/cookie";
import { html } from "@elysiajs/html";
import { jwt } from "@elysiajs/jwt";
Expand Down Expand Up @@ -639,6 +639,9 @@ const app = new Elysia()
"UPDATE jobs SET status = 'completed' WHERE id = ?",
jobId.value,
);

// delete all uploaded files in userUploadsDir
rmdir(userUploadsDir, { recursive: true });
})
.catch((error) => {
console.error("Error in conversion process:", error);
Expand Down

0 comments on commit 55e5b36

Please sign in to comment.