Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -36,8 +36,8 @@ exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, resp | ... | @@ -36,8 +36,8 @@ exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, resp |
36 | const min = agent.parameters.minutes; | 36 | const min = agent.parameters.minutes; |
37 | const gothour = hour.length > 0; | 37 | const gothour = hour.length > 0; |
38 | const gotmin = min.length > 0; | 38 | const gotmin = min.length > 0; |
39 | - const rehour = (hour)+3; | 39 | + const rehour = Number(hour)+3; |
40 | - const remin = min+10; | 40 | + const remin = Number(min)+10; |
41 | 41 | ||
42 | if(gothour && gotmin) { | 42 | if(gothour && gotmin) { |
43 | agent.add(`좋습니다. 당신의 취침시간은 ${hour}시 ${min}분 입니다.`); | 43 | agent.add(`좋습니다. 당신의 취침시간은 ${hour}시 ${min}분 입니다.`); | ... | ... |
-
Please register or login to post a comment