Skip to content

Commit

Permalink
fix: no custom models case
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Jun 24, 2018
1 parent e3ee87b commit 322b351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/in-house-bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function createProductsBot({
models: {
all: mergeModels()
.add(baseModels, { validate: false })
.add(conf.modelsPack ? conf.modelsPack.models : {}, mergeModelsOpts)
.add(conf.modelsPack && conf.modelsPack.models || {}, mergeModelsOpts)
.get()
},
products: productsList,
Expand Down

0 comments on commit 322b351

Please sign in to comment.