fix(all): TRUE multicloud.
This commit is contained in:
parent
a1d6cfaf45
commit
829cacdf35
1 changed files with 2 additions and 2 deletions
|
@ -361,14 +361,14 @@ export class GBVMService extends GBService {
|
|||
|
||||
// Cutom connection for TABLE.
|
||||
const connectionName = t.connection;
|
||||
let con;
|
||||
let con = min[connectionName];
|
||||
|
||||
if (!con) {
|
||||
throw new Error(`Invalid connection specified: ${connectionName}.`);
|
||||
}
|
||||
|
||||
// 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) {
|
||||
const model = seq.models[tableName];
|
||||
|
|
Loading…
Add table
Reference in a new issue