From 64c26632ddc1036b8d8fc24663e9466e00eabd43 Mon Sep 17 00:00:00 2001 From: "me@rodrigorodriguez.com" Date: Thu, 17 Oct 2024 13:47:18 -0300 Subject: [PATCH] new(core.gbapp): LLM alerts for data. --- src/util.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util.ts b/src/util.ts index b8e30ef0..8ea72005 100644 --- a/src/util.ts +++ b/src/util.ts @@ -211,12 +211,12 @@ export class GBUtil { public static async listTables(dialect: any, seq: any) { let tables; - if (dialect === 'mssql') { - // Extracting table name from the object returned by MSSQL - tables = await seq.getQueryInterface().showAllTables({ schema: 'dbo' }); - tables = tables.map((table: any) => table.tableName); // Extracting the table name - } else { + if (dialect === 'sqlite') { tables = await seq.getQueryInterface().showAllTables(); + } else { + // Extracting table name from the object returned by MSSQL + tables = await seq.getQueryInterface().showAllTables(); + tables = tables.map((table: any) => table.tableName); // Extracting the table name } return tables; }