From e67a32608ba1b4a0d04a351fe70d869f16d7ec2b Mon Sep 17 00:00:00 2001 From: "Visal .In" Date: Wed, 27 Nov 2024 16:29:41 +0700 Subject: [PATCH] fixing missing table error --- src/drivers/postgres/postgres-driver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/postgres/postgres-driver.ts b/src/drivers/postgres/postgres-driver.ts index d751618..8086865 100644 --- a/src/drivers/postgres/postgres-driver.ts +++ b/src/drivers/postgres/postgres-driver.ts @@ -178,7 +178,7 @@ WHERE const tableKey = column.table_schema + "." + column.table_name; - const tableSchema = tableRecord[tableKey].tableSchema; + const tableSchema = tableRecord[tableKey]?.tableSchema; if (tableSchema) { tableSchema.columns.push(columnItem); }