Browse Source

refactor(nocodb): simplify logic

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
2dcc1da32d
  1. 4
      packages/nocodb/src/lib/services/util.svc.ts

4
packages/nocodb/src/lib/services/util.svc.ts

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

Loading…
Cancel
Save