mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: lint
This commit is contained in:
parent
b594cb2dd6
commit
4329b21cd1
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user