- FIX: Whastapp line now can be turned off;
- FIX: More error logging on BuildMin.
This commit is contained in:
		
							parent
							
								
									70a9862d01
								
							
						
					
					
						commit
						81a1445a09
					
				
					 6 changed files with 19 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -1,5 +1,11 @@
 | 
			
		|||
# Release History
 | 
			
		||||
 | 
			
		||||
## Version 0.0.25
 | 
			
		||||
 | 
			
		||||
- FIX: Whastapp line now can be turned off;
 | 
			
		||||
- FIX: More error logging on BuildMin.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Version 0.0.24
 | 
			
		||||
 | 
			
		||||
- FIX: AskDialog compilation error.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -107,15 +107,16 @@ export class GBCoreService implements IGBCoreService {
 | 
			
		|||
  }
 | 
			
		||||
 | 
			
		||||
  syncDatabaseStructure(cb) {
 | 
			
		||||
    if (GBConfigService.get("DATABASE_SYNC")) {
 | 
			
		||||
    if (GBConfigService.get("DATABASE_SYNC") === "true") {
 | 
			
		||||
      logger.trace("Syncing database...");
 | 
			
		||||
      this.sequelize.sync().then(value => {
 | 
			
		||||
        logger.trace("Database synced.");
 | 
			
		||||
        cb();
 | 
			
		||||
      });
 | 
			
		||||
    }
 | 
			
		||||
    else{
 | 
			
		||||
    else {
 | 
			
		||||
      logger.trace("Database synchronization is disabled.");
 | 
			
		||||
      cb();
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -462,6 +462,7 @@ export class GBMinService {
 | 
			
		|||
            });
 | 
			
		||||
          });
 | 
			
		||||
      } catch (err) {
 | 
			
		||||
        logger.error(err);
 | 
			
		||||
        reject(err)
 | 
			
		||||
      }
 | 
			
		||||
    });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -54,9 +54,14 @@ export class GBWhatsappPackage implements IGBPackage {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    loadBot(min: GBMinInstance): void {
 | 
			
		||||
        
 | 
			
		||||
        // Only loads engine if it is defined on services.json.
 | 
			
		||||
 | 
			
		||||
        if (min.instance.whatsappBotKey != "") {
 | 
			
		||||
            this.channel = new WhatsappDirectLine(min.botId, min.instance.whatsappBotKey, min.instance.whatsappServiceKey,
 | 
			
		||||
                min.instance.whatsappServiceNumber, min.instance.whatsappServiceUrl, min.instance.whatsappServiceWebhookUrl);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    unloadBot(min: GBMinInstance): void {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
{
 | 
			
		||||
  "name": "botserver",
 | 
			
		||||
  "version": "0.0.24",
 | 
			
		||||
  "version": "0.0.25",
 | 
			
		||||
  "description": "General Bot Community Edition open-core server.",
 | 
			
		||||
  "contributors": [
 | 
			
		||||
    "Rodrigo Rodriguez <me@rodrigorodriguez.com>"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -103,7 +103,6 @@ export class GBServer {
 | 
			
		|||
            logger.trace(`Loading sys package: ${e.name}...`);
 | 
			
		||||
            let p = Object.create(e.prototype) as IGBPackage;
 | 
			
		||||
            p.loadPackage(core, core.sequelize);
 | 
			
		||||
 | 
			
		||||
          });
 | 
			
		||||
 | 
			
		||||
        (async () => {
 | 
			
		||||
| 
						 | 
				
			
			@ -115,9 +114,8 @@ export class GBServer {
 | 
			
		|||
              logger.info(`Instance loaded: ${instance.botId}...`);
 | 
			
		||||
            }, server, appPackages);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
          } catch (err) {
 | 
			
		||||
            logger.log(err)
 | 
			
		||||
            logger.info(err);
 | 
			
		||||
          }
 | 
			
		||||
        })()
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue