Skip to content

Commit

Permalink
fix(plugin-nlu): add returns to make it work again in PROD
Browse files Browse the repository at this point in the history
  • Loading branch information
vanbasten17 committed Sep 13, 2019
1 parent 5d802e3 commit f540bbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/botonic-plugin-nlu/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NLU } from './nlu'
export default class BotonicPluginNLU {
constructor(options) {
let languages = Object.keys(options)
;(async () => {
return (async () => {
this.nlu = await new NLU(languages)
return this
})()
Expand Down
2 changes: 1 addition & 1 deletion packages/botonic-plugin-nlu/src/nlu.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ global.fetch = fetch

export class NLU {
constructor(languages) {
;(async () => {
return (async () => {
this.env = await resolveEnv()
this.languages = []
this.models = {}
Expand Down

0 comments on commit f540bbd

Please sign in to comment.