#857 added to (tomorrow) restriction

This commit is contained in:
Gerard 2018-12-12 14:52:20 +01:00
parent 832d3f7a0a
commit bac9b1c4ef
2 changed files with 5 additions and 3 deletions

View File

@ -15,7 +15,11 @@ export default class Controller {
today.setHours(0, 0, 0, 0);
today.setTime(today.getTime() - offset);
this.filter = {myTeam: true, from: today};
let tomorrow = new Date(today);
tomorrow.setHours(23, 59, 59, 59);
tomorrow.setTime(tomorrow.getTime() - offset);
this.filter = {myTeam: true, from: today, to: tomorrow};
}
goToTurns() {

View File

@ -93,8 +93,6 @@ module.exports = Self => {
worker.collegues().forEach(collegue => {
teamIds.push(collegue.collegueFk);
});
console.log(teamIds);
let where = buildFilter(ctx.args, (param, value) => {
switch (param) {