Skip to content

Commit

Permalink
fix(all): Create bot working again.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jul 19, 2023
1 parent 3bbd732 commit b779f29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core.gbapp/services/GBDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export class GBDeployer implements IGBDeployer {
* Retrives token and initialize drive client API.
*/
public static async internalGetDriveClient(min: GBMinInstance) {
const token = await (min.adminService as any)['acquireElevatedToken'](min.instance.instanceId, true);
const token = await (min.adminService as any)
['acquireElevatedToken'](min.instance.instanceId, true);
const siteId = process.env.STORAGE_SITE_ID;
const libraryId = process.env.STORAGE_LIBRARY;

Expand Down Expand Up @@ -403,7 +404,8 @@ export class GBDeployer implements IGBDeployer {
// Connects to MSFT storage.

const token = await
(min.adminService as any)['acquireElevatedToken'](min.instance.instanceId, true);
(min.adminService as any)['acquireElevatedToken']
(min.instance.instanceId, true);

const client = MicrosoftGraph.Client.init({
authProvider: done => {
Expand Down

0 comments on commit b779f29

Please sign in to comment.