Skip to content

Commit

Permalink
fix(admin): create bot from template is fast again (#11218)
Browse files Browse the repository at this point in the history
  • Loading branch information
EFF committed Jan 14, 2022
1 parent aa28d7a commit 3ed45c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/bp/src/core/bots/bot-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ export class BotService {

await scopedGhost.ensureDirs('/', BOT_DIRECTORIES)
await scopedGhost.upsertFile('/', BOT_CONFIG_FILENAME, stringify(mergedConfigs))
await scopedGhost.upsertFiles('/', files)
await scopedGhost.upsertFiles('/', files, { ignoreLock: true })

return mergedConfigs
} else {
Expand Down
2 changes: 1 addition & 1 deletion packages/bp/src/core/bpfs/ghost-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export class ScopedGhostService {
await this._assertBotUnlocked(rootFolder)
}

await Promise.all(content.map(c => this.upsertFile(rootFolder, c.name, c.content)))
await Promise.all(content.map(c => this.upsertFile(rootFolder, c.name, c.content, options)))
}

/**
Expand Down

0 comments on commit 3ed45c1

Please sign in to comment.