fix: lint

This commit is contained in:
Mohamed Marrouchi 2024-12-20 18:55:25 +01:00
parent b594cb2dd6
commit 4329b21cd1

View File

@ -103,11 +103,12 @@ export const config: Config = {
from: process.env.EMAIL_SMTP_FROM || 'noreply@example.com', from: process.env.EMAIL_SMTP_FROM || 'noreply@example.com',
}, },
parameters: { parameters: {
uploadDir: uploadDir: process.env.UPLOAD_DIR
(process.env.UPLOAD_DIR ? join(process.cwd(), process.env.UPLOAD_DIR) : join(process.cwd(), 'uploads'), ? join(process.cwd(), process.env.UPLOAD_DIR)
avatarDir: : join(process.cwd(), 'uploads'),
(process.env.AVATAR_DIR ? join(process.cwd(), process.env.AVATAR_DIR)) : avatarDir: process.env.AVATAR_DIR
join(process.cwd(), 'avatars'), ? join(process.cwd(), process.env.AVATAR_DIR)
: join(process.cwd(), 'avatars'),
storageMode: 'disk', storageMode: 'disk',
maxUploadSize: process.env.UPLOAD_MAX_SIZE_IN_BYTES maxUploadSize: process.env.UPLOAD_MAX_SIZE_IN_BYTES
? Number(process.env.UPLOAD_MAX_SIZE_IN_BYTES) ? Number(process.env.UPLOAD_MAX_SIZE_IN_BYTES)