Browse Source

fix(nocodb): fix env var true false cases

pull/5137/head
Wing-Kam Wong 2 years ago
parent
commit
7b580f5ee7
  1. 4
      packages/nocodb/src/lib/meta/api/utilApis.ts

4
packages/nocodb/src/lib/meta/api/utilApis.ts

@ -53,8 +53,8 @@ export async function appInfo(req: Request, res: Response) {
),
timezone: defaultConnectionConfig.timezone,
ncMin: !!process.env.NC_MIN,
teleEnabled: !process.env.NC_DISABLE_TELE,
auditEnabled: !process.env.NC_DISABLE_AUDIT,
teleEnabled: process.env.NC_DISABLE_TELE === 'true' ? false : true,
auditEnabled: process.env.NC_DISABLE_AUDIT === 'true' ? false : true,
ncSiteUrl: (req as any).ncSiteUrl,
ee: Noco.isEE(),
ncAttachmentFieldSize: NC_ATTACHMENT_FIELD_SIZE,

Loading…
Cancel
Save