Skip to content

Commit f540bbd

Browse files
committed
fix(plugin-nlu): add returns to make it work again in PROD
1 parent 5d802e3 commit f540bbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/botonic-plugin-nlu/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NLU } from './nlu'
33
export default class BotonicPluginNLU {
44
constructor(options) {
55
let languages = Object.keys(options)
6-
;(async () => {
6+
return (async () => {
77
this.nlu = await new NLU(languages)
88
return this
99
})()

packages/botonic-plugin-nlu/src/nlu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ global.fetch = fetch
1111

1212
export class NLU {
1313
constructor(languages) {
14-
;(async () => {
14+
return (async () => {
1515
this.env = await resolveEnv()
1616
this.languages = []
1717
this.models = {}

0 commit comments

Comments
 (0)