Skip to content

Commit

Permalink
fix: update botProject in server cache after eject (#2985)
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Brown <asbrown002@gmail.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
  • Loading branch information
3 people authored May 11, 2020
1 parent be64915 commit f67fcab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Composer/packages/server/src/controllers/eject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const EjectController = {
let runtimePath;
try {
runtimePath = await template.eject(currentProject, new LocalDiskStorage());
// init bot project, make sure it include customize schema files
await currentProject.init();
} catch (err) {
res.status(500).json({
message: err.message,
Expand Down
1 change: 0 additions & 1 deletion Composer/packages/server/src/models/bot/botProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export class BotProject {
} catch (_e) {
// when re-index opened bot, file write may error
}
this.files = await this._getFiles();
this.settings = await this.getEnvSettings('', false);
this.skills = await extractSkillManifestUrl(this.settings?.skill || []);
this.files = await this._getFiles();
Expand Down

0 comments on commit f67fcab

Please sign in to comment.