fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
2 changed files with 3 additions and 3 deletions
Showing only changes of commit ca9896588f - Show all commits

View file

@ -196,7 +196,7 @@ export class GBMinService {
GBServer.globals.minInstances.push(min);
// Install default VBA module.
// this.deployer.deployPackage(min, 'packages/default.gbdialog');
this.deployer.deployPackage(min, 'packages/default.gbdialog');
// Call the loadBot context.activity for all packages.
this.invokeLoadBot(GBServer.globals.appPackages, GBServer.globals.sysPackages, min, GBServer.globals.server);

View file

@ -40,6 +40,7 @@ const express = require('express');
const bodyParser = require('body-parser');
import * as fs from 'fs';
var mkdirp = require('mkdirp');
var Path = require('path');
import { GBLog, IGBCoreService, IGBInstance, IGBPackage, GBMinInstance } from 'botlib';
import { GBAdminService } from '../packages/admin.gbapp/services/GBAdminService';
@ -92,12 +93,11 @@ export class GBServer {
// Creates working directory.
const workDir = 'workDir';
const workDir = Path.join(process.env.PWD, 'work');
if (!fs.existsSync(workDir)){
mkdirp.sync(workDir);
}
server.listen(port, () => {
(async () => {
try {