Skip to content

Commit

Permalink
fix(core): per-bot module config
Browse files Browse the repository at this point in the history
  • Loading branch information
slvnperron committed Feb 16, 2019
1 parent 73de165 commit 40625cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bp/core/services/module/config-reader.ts
Expand Up @@ -148,7 +148,8 @@ export default class ConfigReader {
return this.getMerged(moduleId)
}

@Memoize()
// Don't @Memoize() this fn. It only memoizes on the first argument
// https://github.com/steelsojka/lodash-decorators/blob/master/src/memoize.ts#L15
public getForBot(moduleId: string, botId: string): Promise<Config> {
return this.getMerged(moduleId, botId)
}
Expand Down

0 comments on commit 40625cb

Please sign in to comment.