scheduler-node-models 1.0.24 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scheduler-node-models",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "files": [
@@ -140,7 +140,7 @@ class Assignment {
140
140
  // if only one schedule is provided. Else use multiple schedule and rotate between
141
141
  // them.
142
142
  if (this.schedules.length === 1 || !this.rotationdays || this.rotationdays === 0) {
143
- const iDay = days & this.schedules[0].workdays.length;
143
+ const iDay = days % this.schedules[0].workdays.length;
144
144
  return this.schedules[0].getWorkday(iDay);
145
145
  }
146
146
  else if (this.schedules.length > 1) {