fix(all): TRUE multicloud.

This commit is contained in:
Rodrigo Rodriguez 2024-08-26 21:47:57 -03:00
parent a1d6cfaf45
commit 829cacdf35

View file

@ -361,14 +361,14 @@ export class GBVMService extends GBService {
// Cutom connection for TABLE. // Cutom connection for TABLE.
const connectionName = t.connection; const connectionName = t.connection;
let con; let con = min[connectionName];
if (!con) { if (!con) {
throw new Error(`Invalid connection specified: ${connectionName}.`); throw new Error(`Invalid connection specified: ${connectionName}.`);
} }
// Field checking, syncs if there is any difference. // Field checking, syncs if there is any difference.
const seq = min[connectionName] ? min[connectionName] : minBoot.core.sequelize; const seq = con ? con : minBoot.core.sequelize;
if (seq) { if (seq) {
const model = seq.models[tableName]; const model = seq.models[tableName];