Browse Source

chore(nocodb): lint

pull/4931/head
Wing-Kam Wong 2 years ago
parent
commit
276cf26db8
  1. 4
      packages/nocodb/src/lib/constants/index.ts
  2. 2
      packages/nocodb/src/lib/meta/api/utilApis.ts

4
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

2
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);

Loading…
Cancel
Save