From 276cf26db82a110391bc66c24bb76b20c8c8cb45 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 19 Jan 2023 14:05:54 +0800 Subject: [PATCH] chore(nocodb): lint --- packages/nocodb/src/lib/constants/index.ts | 4 +++- packages/nocodb/src/lib/meta/api/utilApis.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/lib/constants/index.ts b/packages/nocodb/src/lib/constants/index.ts index 193325228d..14a9cc1315 100644 --- a/packages/nocodb/src/lib/constants/index.ts +++ b/packages/nocodb/src/lib/constants/index.ts @@ -1,3 +1,5 @@ export const NC_LICENSE_KEY = 'nc-license-key'; export const NC_APP_SETTINGS = 'nc-app-settings'; -export const NC_ATTACHMENT_FIELD_SIZE = +(process.env['NC_ATTACHMENT_FIELD_SIZE'] || 20 * 1024 * 1024); // 20 MB +export const NC_ATTACHMENT_FIELD_SIZE = +( + process.env['NC_ATTACHMENT_FIELD_SIZE'] || 20 * 1024 * 1024 +); // 20 MB diff --git a/packages/nocodb/src/lib/meta/api/utilApis.ts b/packages/nocodb/src/lib/meta/api/utilApis.ts index 30d24ebcf2..a67bbe0772 100644 --- a/packages/nocodb/src/lib/meta/api/utilApis.ts +++ b/packages/nocodb/src/lib/meta/api/utilApis.ts @@ -58,7 +58,7 @@ export async function appInfo(req: Request, res: Response) { ncSiteUrl: (req as any).ncSiteUrl, ee: Noco.isEE(), ncAttachmentFieldSize: NC_ATTACHMENT_FIELD_SIZE, - ncMaxAttachmentsAllowed: +(process.env.NC_MAX_ATTACHMENTS_ALLOWED || 10) + ncMaxAttachmentsAllowed: +(process.env.NC_MAX_ATTACHMENTS_ALLOWED || 10), }; res.json(result);