Browse Source

feat: add root db and project type in project info

Signed-off-by: Pranav C Balan <pranavxc@gmail.com>
pull/272/head
Pranav C Balan 4 years ago
parent
commit
2be877ebbf
  1. 14
      packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts

14
packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts

@ -3114,12 +3114,14 @@ export default class NcMetaMgr {
const config = this.projectConfigs[this.getProjectId(args)]; const config = this.projectConfigs[this.getProjectId(args)];
return { return {
node: process.version, Node: process.version,
arch: process.arch, Arch: process.arch,
platform: process.platform, Platform: process.platform,
docker: isDocker(), Docker: isDocker(),
database: config.envs?.[process.env.NODE_ENV || 'dev']?.db?.[0]?.client, Database: config.envs?.[process.env.NODE_ENV || 'dev']?.db?.[0]?.client,
packageVersion: packageInfo?.version 'ProjectOnRootDB': !!config?.prefix,
'RootDB': this.config?.meta?.db?.client,
'PackageVersion': packageInfo?.version
} }
} }

Loading…
Cancel
Save