From 2abb49815894b085890c0f12e31018c8c01cc039 Mon Sep 17 00:00:00 2001 From: "me@rodrigorodriguez.com" Date: Thu, 17 Oct 2024 14:34:20 -0300 Subject: [PATCH] new(core.gbapp): LLM alerts for data. --- packages/basic.gblib/services/SystemKeywords.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/basic.gblib/services/SystemKeywords.ts b/packages/basic.gblib/services/SystemKeywords.ts index 0494f1a6..b079f70b 100644 --- a/packages/basic.gblib/services/SystemKeywords.ts +++ b/packages/basic.gblib/services/SystemKeywords.ts @@ -2944,12 +2944,12 @@ export class SystemKeywords { // Step 4: Retrieve and export data for each table for (const table of tables) { // Retrieve rows from the source table - const [rows] = await min.core.sequelize.query(`SELECT * FROM ${table}`); + const [rows] = await con.query(`SELECT * FROM ${table}`); if (rows.length === 0) continue; // Skip if the table has no data // Get the schema for the current table from the source database - const columns = await min.core.sequelize.queryInterface.describeTable(table); + const columns = await con.queryInterface.describeTable(table); // Create a schema object for SQLite const schema = {};