Skip to content

Commit

Permalink
fix(cli): fix max training parameter to allow the value 0 (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmass committed Dec 2, 2021
1 parent 3fcdde3 commit 1ec77e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nlu-server/src/application/training-queue.ts
Expand Up @@ -44,7 +44,7 @@ export default class TrainingQueue {
opt: Partial<QueueOptions> = {}
) {
this.logger = logger.sub('training-queue')
this.options = { ...DEFAULT_OPTIONS, ..._.pickBy(opt) }
this.options = { ...DEFAULT_OPTIONS, ...opt }
}

public addListener(listener: TrainingListener) {
Expand Down

0 comments on commit 1ec77e4

Please sign in to comment.