feat: simplify uploads directory path assignment by removing redundant process.cwd() call
All checks were successful
Build Docker Image / build (push) Successful in 1m20s

This commit is contained in:
2026-03-02 23:28:23 +01:00
parent 2b4a55636e
commit 91400f9910
2 changed files with 2 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ export const actions: Actions = {
const hasUploadedPicture = !!pictureFile && pictureFile.size > 0;
if (hasUploadedPicture) {
try {
const uploadsDir = join(process.cwd(), env.UPLOAD_FOLDER || 'uploads');
const uploadsDir = env.UPLOADS_DIR || join(process.cwd(),'uploads');
if (!existsSync(uploadsDir)) {
mkdirSync(uploadsDir, { recursive: true });
}