Skip to content

Commit

Permalink
new(core.gbapp): LLM alerts for data.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 17, 2024
1 parent 64c2663 commit 0c1c878
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/basic.gblib/services/GBVMService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,12 @@ export class GBVMService extends GBService {
});

sync = sync ? sync : !found;

// Do not erase tables in case of an error in collection retrieval.

if (tables.length === 0){
sync = false;
}

associations.forEach(e => {
const from = seq.models[e.from];
Expand Down
2 changes: 1 addition & 1 deletion packages/basic.gblib/services/SystemKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2912,7 +2912,7 @@ export class SystemKeywords {
const dialect = con.dialect.name;

// Step 3: Get the list of all tables from the source database
const tables = await GBUtil.listTables(dialect, min.core.sequelize);
const tables = await GBUtil.listTables(dialect, con);

// Function to map source database datatypes to SQLite-compatible datatypes
const mapToSQLiteType = (columnType) => {
Expand Down

0 comments on commit 0c1c878

Please sign in to comment.