fix(basic.gblib): FILL keyword can now template images and AS IMAGE can convert a DOCX to a PNG.

This commit is contained in:
rodrigorodriguez 2023-02-09 11:31:11 -03:00
parent 16bdab6bcc
commit 41ceedfc00
2 changed files with 6 additions and 7 deletions

View file

@ -344,7 +344,7 @@ export class SystemKeywords {
// Checks if it is a GBFILE.
if (data.data) {
if (data.data) {
const gbfile = data.data;
let { baseUrl, client } = await GBDeployer.internalGetDriveClient(this.min);
@ -1249,9 +1249,9 @@ export class SystemKeywords {
// Determines full path at source and destination.
const root = urlJoin(`/${botId}.gbai/${botId}.gbdata`);
const root = urlJoin(`/${botId}.gbai/${botId}.gbdrive`);
const srcPath = urlJoin(root, src);
const dstPath = urlJoin(`/${botId}.gbai/${botId}.gbdata`, dest);
const dstPath = urlJoin(`/${botId}.gbai/${botId}.gbdrive`, dest);
// Checks if the destination contains subfolders that
// need to be created.

View file

@ -126,17 +126,16 @@ export class GBServer {
const azureDeployer: AzureDeployerService = await AzureDeployerService.createInstance(deployer);
const adminService: GBAdminService = new GBAdminService(core);
if (process.env.NODE_ENV === 'development' && !process.env.BOT_URL) {
const proxy = GBConfigService.get('REVERSE_PROXY');
if (process.env.NODE_ENV === 'development' ) {
const proxy = GBConfigService.get('BOT_URL');
if (proxy !== undefined) {
GBServer.globals.publicAddress = proxy;
} else {
// Ensure that local development proxy is setup.
GBLog.info(`Establishing a development local proxy (ngrok)...`);
GBLog.info(`Establishing a development local proxy (proxy) on BOT_URL...`);
GBServer.globals.publicAddress = await core.ensureProxy(port);
}
process.env.BOT_URL = GBServer.globals.publicAddress;
} else {
const serverAddress = process.env.BOT_URL;
GBLog.info(`Defining server address at ${serverAddress}...`);