fix(all): TRUE multicloud.
This commit is contained in:
		
							parent
							
								
									e5eb64b11d
								
							
						
					
					
						commit
						a7be4850b7
					
				
					 2 changed files with 10 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -358,7 +358,8 @@ export class GBVMService extends GBService {
 | 
			
		|||
          if (!min[connectionName]) {
 | 
			
		||||
            GBLogEx.info(min, `Loading custom connection ${connectionName}...`);
 | 
			
		||||
            min[connectionName] = new Sequelize(storageName, username, password, sequelizeOptions);
 | 
			
		||||
            min[`llmconnection`] = {
 | 
			
		||||
            if (connectionName === 'llm') {
 | 
			
		||||
              min[`llm`] = {
 | 
			
		||||
                type: dialect,
 | 
			
		||||
                username,
 | 
			
		||||
                database: storageName,
 | 
			
		||||
| 
						 | 
				
			
			@ -366,6 +367,7 @@ export class GBVMService extends GBService {
 | 
			
		|||
              };
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!con) {
 | 
			
		||||
          throw new Error(`Invalid connection specified: ${connectionName}.`);
 | 
			
		||||
| 
						 | 
				
			
			@ -437,10 +439,7 @@ export class GBVMService extends GBService {
 | 
			
		|||
          });
 | 
			
		||||
 | 
			
		||||
          if (sync && shouldSync) {
 | 
			
		||||
            GBLogEx.info(
 | 
			
		||||
              min,
 | 
			
		||||
              `Syncing changes for TABLE ${connectionName} ${tableName} keyword (${min.botId})...`
 | 
			
		||||
            );
 | 
			
		||||
            GBLogEx.info(min, `Syncing changes for TABLE ${connectionName} ${tableName} keyword (${min.botId})...`);
 | 
			
		||||
 | 
			
		||||
            await seq.sync({
 | 
			
		||||
              alter: true,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -475,7 +475,7 @@ export class ChatServices {
 | 
			
		|||
        question
 | 
			
		||||
      });
 | 
			
		||||
    } else if (LLMMode === 'sql') {
 | 
			
		||||
      const con = min[`llmconnection`];
 | 
			
		||||
      const con = min[`llm`];
 | 
			
		||||
 | 
			
		||||
      const dialect = con['storageDriver'];
 | 
			
		||||
      const host = con['storageServer'];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue