π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: replace process.env.NC_DISABLE_MUX with isMuxEnabled for better clarity
Pranav C00a42a045a97
diff --git a/packages/nocodb/src/db/CustomKnex.ts b/packages/nocodb/src/db/CustomKnex.tsindex 12f843603a..d4671306bf 100644--- a/packages/nocodb/src/db/CustomKnex.ts+++ b/packages/nocodb/src/db/CustomKnex.ts@@ -5,6 +5,7 @@ import type { FilterType } from 'nocodb-sdk';import type { BaseModelSqlv2 } from '~/db/BaseModelSqlv2';import Filter from '~/models/Filter';import { NcError } from '~/helpers/catchError';+import { isMuxEnabled } from '~/utils/envs';// refer : https://github.com/brianc/node-pg-types/blob/master/lib/builtins.jsconst pgTypes = {@@ -1094,7 +1095,7 @@ function CustomKnex(},isExternal: {enumerable: false,- value: !!extDb && process.env.NC_DISABLE_MUX !== 'true',+ value: !!extDb && isMuxEnabled,},// Top-level transaction: create a real trx, then decorate it (including nested behavior)@@ -1133,7 +1134,7 @@ function CustomKnex(},isExternal: {enumerable: false,- value: !!extDb && process.env.NC_DISABLE_MUX !== 'true',+ value: !!extDb && isMuxEnabled,},ops: {enumerable: true,diff --git a/packages/nocodb/src/utils/envs.ts b/packages/nocodb/src/utils/envs.tsindex 4a723e4b4d..5056a8adf1 100644--- a/packages/nocodb/src/utils/envs.ts+++ b/packages/nocodb/src/utils/envs.ts@@ -1 +1,2 @@export const isWorker = process.env.NC_WORKER_CONTAINER === 'true';+export const isMuxEnabled = false;