Skip to content

Commit ed5650b

Browse files
author
Bogdan Abaev
committed
minor bug fixes
1 parent 5d1051e commit ed5650b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

client/alexa_lambda.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ const reportIntentHandler = {
252252
brief{
253253
timeSpent
254254
day
255-
255+
month
256256
}
257257
}
258258
}

server/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ var schema = buildSchema(`
2121
}
2222
2323
type DailyBreakdown{
24-
_id: String!
2524
day: String!
2625
month: String!
2726
timeSpent: Int!

server/timeTracker.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ const removeProject = function (username, projectName) {
139139
}, {
140140
$pull: {
141141
projectNames: projectName
142+
},
143+
$set: {
144+
currentProject: null,
145+
finish:new Date()
142146
}
143147
}).then((suc) => {
144148
suc.matchedCount ==0 ? reject("You are new to time tracker. Create a project first") :

0 commit comments

Comments
 (0)