Browse Source

refactor: env name refactoring

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/9601/head
Pranav C 2 months ago
parent
commit
bb3e9adde5
  1. 4
      packages/nocodb/src/utils/getInstance.ts

4
packages/nocodb/src/utils/getInstance.ts

@ -43,12 +43,12 @@ export default async function (force = false, ncMeta = Noco.ncMeta) {
.knex(MetaTable.MODELS) .knex(MetaTable.MODELS)
.count('id as count') .count('id as count')
.first() .first()
.then((c) => c.created_at); .then((c) => c.count);
const views = await ncMeta const views = await ncMeta
.knex(MetaTable.VIEWS) .knex(MetaTable.VIEWS)
.count('id as count') .count('id as count')
.first() .first()
.then((c) => c.created_at); .then((c) => c.count);
const nc_db_type = Noco.getConfig()?.meta?.db?.client; const nc_db_type = Noco.getConfig()?.meta?.db?.client;

Loading…
Cancel
Save