MCPcopy
hub / github.com/chartbrew/chartbrew / shouldRunOnWeekday

Function shouldRunOnWeekday

server/modules/scheduleWeekdays.js:23–33  ·  view source on GitHub ↗
(daysOfWeek, now)

Source from the content-addressed store, hash-verified

21}
22
23function shouldRunOnWeekday(daysOfWeek, now) {
24 if (!Array.isArray(daysOfWeek)) {
25 return true;
26 }
27
28 if (daysOfWeek.length === 0) {
29 return false;
30 }
31
32 return daysOfWeek.some((dayOfWeek) => getWeekdayNumber(dayOfWeek) === now.weekday);
33}
34
35module.exports = {
36 getWeekdayNumber,

Callers 3

updateDashboardsFunction · 0.85
checkSnapshotsFunction · 0.85

Calls 1

getWeekdayNumberFunction · 0.85

Tested by

no test coverage detected