Skip to content

Commit 5d1051e

Browse files
author
Bogdan Abaev
committed
minor lambda fix
1 parent 705832c commit 5d1051e

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

client/alexa_lambda.js

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -245,20 +245,18 @@ const reportIntentHandler = {
245245
},
246246
handle(handlerInput) {
247247
var query=`{
248-
time(username: "username"){
249-
report(days: 4){
250-
_id
251-
timeSpent
252-
workSessions{
253-
duration
254-
start{
255-
day
256-
time
257-
}
258-
}
248+
time(username: ${username} ){
249+
report(days:${days}){
250+
_id
251+
totalTime
252+
brief{
253+
timeSpent
254+
day
255+
259256
}
260-
}
261-
}`;
257+
}
258+
}
259+
}`;
262260
return sendQuery(query,handlerInput);
263261
}
264262
};

0 commit comments

Comments
 (0)