fix(all): Create bot working again.
This commit is contained in:
parent
fc28eb9ec0
commit
ed74c5b003
1 changed files with 15 additions and 15 deletions
|
@ -170,7 +170,7 @@ export class GBAdminService implements IGBAdminService {
|
||||||
// .gbot packages are handled using storage API, so no download
|
// .gbot packages are handled using storage API, so no download
|
||||||
// of local resources is required.
|
// of local resources is required.
|
||||||
const gbai = DialogKeywords.getGBAIPath(min.instance.botId);
|
const gbai = DialogKeywords.getGBAIPath(min.instance.botId);
|
||||||
await deployer ['downloadFolder'](min,
|
await deployer['downloadFolder'](min,
|
||||||
Path.join('work', `${gbai}`),
|
Path.join('work', `${gbai}`),
|
||||||
Path.basename(localFolder));
|
Path.basename(localFolder));
|
||||||
await deployer['deployPackage2'](min, user, 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> {
|
public async acquireElevatedToken(instanceId: number, root: boolean = false): Promise<string> {
|
||||||
|
|
||||||
if (root){
|
if (root) {
|
||||||
const minBoot = GBServer.globals.minBoot;
|
const minBoot = GBServer.globals.minBoot;
|
||||||
instanceId = minBoot.instance.instanceId;
|
instanceId = minBoot.instance.instanceId;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue