fix(basic.gblib): FILL keyword can now template images and AS IMAGE can convert a DOCX to a PNG.
This commit is contained in:
parent
16bdab6bcc
commit
41ceedfc00
2 changed files with 6 additions and 7 deletions
|
@ -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.
|
||||
|
|
|
@ -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}...`);
|
||||
|
|
Loading…
Add table
Reference in a new issue