Skip to content

Commit 0c86fbc

Browse files
committed
shiritori: return promise
Change-Id: I5b476d3cc4923cb925f07346bd7053f287cd7e84
1 parent 2c1b275 commit 0c86fbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ app.intent('actions.intent.MAIN', (conv) => {
5050
});
5151

5252
app.intent('actions.intent.TEXT', (conv, input) => {
53-
shiritori.loaded.then(() => {
54-
shiritori.interact(dict, input, conv.data.used)
53+
return shiritori.loaded.then(() => {
54+
return shiritori.interact(dict, input, conv.data.used)
5555
.then(result => {
5656
conv.data.used.unshift(input);
5757
conv.data.used.unshift(result.word);

0 commit comments

Comments
 (0)