File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ const checkBalance = async (context) => {
234234 validAccount: true ,
235235 accountBalance: 95.33
236236 };
237- await Promise . resolve ( context) ;
237+ return context;
238238});
239239
240240const processWatsonResponse = async (bot , message ) => {
@@ -328,14 +328,14 @@ They can be customized as follows:
328328``` js
329329middleware .before = (message , assistantPayload ) => async () => {
330330 // Code here gets executed before making the call to Assistant.
331- return await Promise . resolve ( assistantPayload) ;
331+ return assistantPayload;
332332}
333333```
334334
335335``` js
336336middleware .after = (message , assistantResponse ) => async () => {
337337 // Code here gets executed after the call to Assistant.
338- return await Promise . resolve ( assistantResponse) ;
338+ return assistantResponse;
339339});
340340```
341341
You can’t perform that action at this time.
0 commit comments