fix(all): Create bot working again.

This commit is contained in:
Rodrigo Rodriguez 2023-07-19 10:21:38 -03:00
parent fc28eb9ec0
commit ed74c5b003

View file

@ -170,7 +170,7 @@ export class GBAdminService implements IGBAdminService {
// .gbot packages are handled using storage API, so no download
// of local resources is required.
const gbai = DialogKeywords.getGBAIPath(min.instance.botId);
await deployer ['downloadFolder'](min,
await deployer['downloadFolder'](min,
Path.join('work', `${gbai}`),
Path.basename(localFolder));
await deployer['deployPackage2'](min, user, localFolder);
@ -226,7 +226,7 @@ export class GBAdminService implements IGBAdminService {
public async acquireElevatedToken(instanceId: number, root: boolean = false): Promise<string> {
if (root){
if (root) {
const minBoot = GBServer.globals.minBoot;
instanceId = minBoot.instance.instanceId;
}