Showing
1 changed file
with
9 additions
and
4 deletions
@@ -3,17 +3,22 @@ const service = require('./server/service') | @@ -3,17 +3,22 @@ const service = require('./server/service') | ||
3 | 3 | ||
4 | function scheduleMain() { | 4 | function scheduleMain() { |
5 | const ruleIn = new schedule.RecurrenceRule() | 5 | const ruleIn = new schedule.RecurrenceRule() |
6 | - ruleIn.hour = 8 | ||
7 | - ruleIn.minute = 40 | 6 | + // ruleIn.hour = 8 |
7 | + // ruleIn.minute = 40 | ||
8 | + | ||
9 | + ruleIn.hour = 17 | ||
10 | + ruleIn.minute = 0 | ||
8 | 11 | ||
9 | schedule.scheduleJob(ruleIn, function(){ | 12 | schedule.scheduleJob(ruleIn, function(){ |
10 | service.checkinAll() | 13 | service.checkinAll() |
11 | }); | 14 | }); |
12 | 15 | ||
13 | const ruleOut = new schedule.RecurrenceRule() | 16 | const ruleOut = new schedule.RecurrenceRule() |
14 | - ruleOut.hour = 18 | ||
15 | - ruleOUt.minute = 0 | 17 | + // ruleOut.hour = 18 |
18 | + // ruleOUt.minute = 0 | ||
16 | 19 | ||
20 | + ruleOut.hour = 17 | ||
21 | + ruleOUt.minute = 0 | ||
17 | schedule.scheduleJob(ruleOut, function(){ | 22 | schedule.scheduleJob(ruleOut, function(){ |
18 | service.checkoutAll() | 23 | service.checkoutAll() |
19 | }); | 24 | }); |
-
Please register or login to post a comment