payservedb 9.8.9 → 9.9.0

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": "payservedb",
3
- "version": "9.8.9",
3
+ "version": "9.9.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -56,9 +56,9 @@ const reminderSchema = new mongoose.Schema(
56
56
  // If overdue is enabled but daily is false, then validate days array
57
57
  return Array.isArray(value) &&
58
58
  value.length > 0 &&
59
- value.every(day => [1, 3, 7].includes(day));
59
+ value.every(day => [1, 3, 7, 10].includes(day));
60
60
  },
61
- message: 'When overdue reminders are enabled (and daily is false), days must include only values of 1, 3, or 7'
61
+ message: 'When overdue reminders are enabled (and daily is false), days must include only values of 1, 3, 7, 10'
62
62
  }
63
63
  }
64
64
  }