#857 added to (tomorrow) restriction
This commit is contained in:
parent
832d3f7a0a
commit
bac9b1c4ef
|
@ -15,7 +15,11 @@ export default class Controller {
|
||||||
today.setHours(0, 0, 0, 0);
|
today.setHours(0, 0, 0, 0);
|
||||||
today.setTime(today.getTime() - offset);
|
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() {
|
goToTurns() {
|
||||||
|
|
|
@ -93,8 +93,6 @@ module.exports = Self => {
|
||||||
worker.collegues().forEach(collegue => {
|
worker.collegues().forEach(collegue => {
|
||||||
teamIds.push(collegue.collegueFk);
|
teamIds.push(collegue.collegueFk);
|
||||||
});
|
});
|
||||||
console.log(teamIds);
|
|
||||||
|
|
||||||
|
|
||||||
let where = buildFilter(ctx.args, (param, value) => {
|
let where = buildFilter(ctx.args, (param, value) => {
|
||||||
switch (param) {
|
switch (param) {
|
||||||
|
|
Loading…
Reference in New Issue