Skip to content

Commit

Permalink
fix: logging for cumulative models pack loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Mar 10, 2018
1 parent c6ccbfc commit 16d776f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/bot/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ export const createGraphqlAPI = (opts):IGraphqlAPI => {
schema = getSchema()
}

if (modelStore.cumulativeModelsPack) {
setModels(modelStore.models)
} else {
setModels(modelStore.models)
}
logger.debug(`have cumulative models pack: ${!!modelStore.cumulativeModelsPack}`)

modelStore.on('update:cumulative', () => setModels(modelStore.models))
setModels(modelStore.models)
modelStore.on('update:cumulative', () => {
logger.debug(`loaded cumulative models pack`)
setModels(modelStore.models)
})

return {
graphiqlOptions: {},
Expand Down

0 comments on commit 16d776f

Please sign in to comment.