File tree 1 file changed +16
-16
lines changed
1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -9,28 +9,28 @@ const timestamp = require('console-timestamp');
9
9
const secure = require ( './secure.json' ) ;
10
10
11
11
const batchSchedule = {
12
- bio : '1,15' ,
13
- biz : '2,16' ,
14
- chem : '3,17' ,
15
- eng : '4,18' ,
16
- espanol : '5,19' ,
17
- geo : '6,20' ,
18
- human : '7,21' ,
19
- k12 : '8,22' ,
20
- math : '9,23' ,
21
- med : '10,24' ,
22
- phys : '11,25' ,
23
- socialsci : '12,26' ,
24
- stats : '13,27' ,
25
- workforce : '14,28' ,
12
+ bio : 1 ,
13
+ biz : 3 ,
14
+ chem : 5 ,
15
+ eng : 7 ,
16
+ espanol : 9 ,
17
+ geo : 10 ,
18
+ human : 12 ,
19
+ k12 : 14 ,
20
+ math : 16 ,
21
+ med : 18 ,
22
+ phys : 20 ,
23
+ socialsci : 22 ,
24
+ stats : 24 ,
25
+ workforce : 26 ,
26
26
} ;
27
27
28
28
/**
29
29
* Adds the scheduler job for a given library and target.
30
30
*
31
31
* @param {string } library - The LibreTexts library shortened identifier.
32
32
* @param {string } target - The area of the library to batch.
33
- * @param {string } timeSpec - The days of the month to run the job.
33
+ * @param {number| string } timeSpec - The day(s) of the month to run the job.
34
34
* @param {number } [timeOffset=0] - An offset to apply to the batch job's schedule.
35
35
*/
36
36
function scheduleLibraryBatch ( library , target , timeSpec , timeOffset = 0 ) {
@@ -146,7 +146,7 @@ function initialize() {
146
146
const timeSpec = batchSchedule [ library ] ;
147
147
if ( library !== 'espanol' ) {
148
148
scheduleLibraryBatch ( library , 'bookshelves' , timeSpec ) ;
149
- scheduleLibraryBatch ( library , 'courses' , timeSpec , 12 ) ;
149
+ scheduleLibraryBatch ( library , 'courses' , timeSpec + 1 ) ;
150
150
} else {
151
151
scheduleLibraryBatch ( library , 'home' , timeSpec ) ;
152
152
}
You can’t perform that action at this time.
0 commit comments