new(all): TRUE multicloud.

This commit is contained in:
Rodrigo Rodriguez 2024-08-20 15:18:44 -03:00
parent 016abf7aac
commit 3d1624ac23

View file

@ -225,7 +225,7 @@ export class GBServer {
GBServer.globals.publicAddress GBServer.globals.publicAddress
); );
if (instances. length === 0) { if (instances.length === 0) {
if (GBConfigService.get('STORAGE_NAME')) { if (GBConfigService.get('STORAGE_NAME')) {
const instance = await importer.importIfNotExistsBotPackage( const instance = await importer.importIfNotExistsBotPackage(
GBConfigService.get('BOT_ID'), GBConfigService.get('BOT_ID'),
@ -245,8 +245,9 @@ export class GBServer {
} }
} }
if (!GBConfigService.get('STORAGE_NAME')) {
await core['ensureFolders'](instances, deployer); await core['ensureFolders'](instances, deployer);
}
GBServer.globals.bootInstance = instances[0]; GBServer.globals.bootInstance = instances[0];
// Builds minimal service infrastructure. // Builds minimal service infrastructure.