Skip to content

Commit

Permalink
make async function
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Sep 7, 2023
1 parent 61b5657 commit dd3872b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/botframework-config/src/botConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class BotConfiguration extends BotConfigurationBase {
*/
static async load(botpath: string, secret?: string): Promise<BotConfiguration> {
// eslint-disable-next-line security/detect-non-literal-fs-filename
const json: string = fs.readFileSync(botpath, 'utf8');
const json: string = await fs.promises.readFile(botpath, 'utf8');
const bot: BotConfiguration = BotConfiguration.internalLoad(json, secret);
bot.internal.location = botpath;

Expand Down

0 comments on commit dd3872b

Please sign in to comment.