From bb3e9adde54b8e2b7392fd33957ce53c51663a95 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 8 Oct 2024 06:29:29 +0000 Subject: [PATCH] refactor: env name refactoring Signed-off-by: Pranav C --- packages/nocodb/src/utils/getInstance.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/utils/getInstance.ts b/packages/nocodb/src/utils/getInstance.ts index 55b4283464..589ccbbe52 100644 --- a/packages/nocodb/src/utils/getInstance.ts +++ b/packages/nocodb/src/utils/getInstance.ts @@ -43,12 +43,12 @@ export default async function (force = false, ncMeta = Noco.ncMeta) { .knex(MetaTable.MODELS) .count('id as count') .first() - .then((c) => c.created_at); + .then((c) => c.count); const views = await ncMeta .knex(MetaTable.VIEWS) .count('id as count') .first() - .then((c) => c.created_at); + .then((c) => c.count); const nc_db_type = Noco.getConfig()?.meta?.db?.client;